What’s the .php file which generates the Custom Background page in the admin panel?
wp-admin/custom-background.php
wp-admin/custom-background.php
You don’t. You would have to keep your new page in sync with the core file each time WordPress is updated … that would not be very pragmatic. Hook into the do_settings_sections(‘general’); with register_setting() and add your code here. There is a third parameter for register_setting(): you can register a callback function here which used … Read more
Off topic here, but for the sake of solving your problem: For delegated events, the on part should be jQuery(document).on(‘click’,’.toggleExtras’, function(e){
First you need to have a child theme. Add this to your style.css of your child theme .entry-meta .byline { display: none; } This should remove only the author from the post. Here’s a bit more information on customizing twenty fourteen theme in wordpress: http://techdwarf.com/customize-twenty-fourteen-theme-wordpress
init is too early for conditional tags to work. It marks when core finished loading, but no environment is set up yet. For admin area only you can hook into admin_init. For conditionals on front end earliest hook you can reliable use is template_redirect.
The codex entry for the admin_init hook has an example showing you how to do this. /** * Restrict access to the administration screens. * * Only administrators will be allowed to access the admin screens, * all other users will be automatically redirected to * ‘example.com/path/to/location’ instead. * * We do allow access for … Read more
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/ });