Enqueue CSS on custom posts’ backend area
Just use the Page-ID class e.g. 123 and use plugin like Custom CSS. There you do: .page-id-123 { font-size: 100px; } You may need to add a class as well if you want to style a certain object.
Just use the Page-ID class e.g. 123 and use plugin like Custom CSS. There you do: .page-id-123 { font-size: 100px; } You may need to add a class as well if you want to style a certain object.
use get_the_ID() to get post id
EDIT VIA COMMENTS <?php function add_styles() { ?> <style type=”text/css”> .wp-editor-container { clear: both; height: 246px !important; } </style> <?php } add_action(‘wp_head’, ‘add_styles’);
try $(“selector”).live(“change”, function(){ /Your code here/ });
Contact GoDaddy for support. It’s their server that’s having issues (a 500 error is a server configuration error).
EDIT: On a post page, the categories are already seen in hierarchical manner but with checkboxes. So, I have assumed that you have to show list of all the categories/subcategories somewhere in the admin panel in following format. Category 1 Sub-Category 1.1 Sub-Category 1.2 Category 2 So, presentation is upto you, I have just given … Read more
You just need to get value from attributes, and set to <select> In your case it will be like this: <select value={ props.attributes.category_id } onChange={ setCategory }> Generally, you thinking in a right way, but variable that you declare at 13 row is not available outside of {}, and you set value to undefined.
You could move this post category to a separate post type. For this you would need to add a new custom post type, move the posts (for example with the plugin “Post Type Switcher”) and then adjust the theme to load the right posts in the frontend. With this plugin you can also add new … Read more
Try the ‘load-post.php’ action.
i found the problem there was space in function.php