Tag Info

Hot answers tagged


Have you ever tried the functions described here? It seems to be exactly what you're looking after. Here's a slightly variation of the function for reference: // Run only when editing a page // For new pages load-page-new.php should be used // See: http://core.trac.wordpress.org/browser/tags/3.5.1/wp-admin/admin.php#L217 add_action( 'load-page.php', ...


If I understand you correctly, you want a custom editor style when editing the homepage? You can check if you're currently editing the homepage by comparing the post ID to the ID in the page_on_front option, like this: function homepage_editor_styles() { global $post_ID, $post_type; if ( empty ( $post_ID ) || 'page' !== $post_type ) return; ...

Only top voted, non community-wiki answers of a minimum length are eligible