Custom styles.css sheet for visual editor

You don’t have to specify a file for the editor style. Just use add_editor_style(); in your functions.php, and then create a file called editor-style.css in your theme folder. You may want to look at some examples (e.g. Twenty Eleven) for some of the TinyMCE-specific rules, which is the stock visual editor you’re referring to.

How to change H1 color only for pages [closed]

I’ll go ahead and answer it anyway. Assuming the theme is built right (I’ll get to that in a second) .page and .single are applied to the <body> tag for pages and posts respectively. In order to ensure those classes are applied, ensure the following template tag is used: <body <?php body_class(); ?> > Then, … Read more

Load jQuery only on home page

WordPress adds a series of classes to the body tag (assuming your theme-designer used body_class()) depending on which page you’re currently viewing. On the homepage, WordPress adds the home class. You could use this to target only the sidebar viewed on the homepage: body.home .classname { position: relative; top: -300px; }

css file status 403

403 Forbidden is a permissions error, check that the file has proper permissions for public access on your server.

How do I use a color from theme options?

You would simply call that option inside of a callback, and hook it into wp_print_styles or wp_head (either one is semantically correct in this case). First, set up your callback, which will print an inline style sheet: function wpse74013_print_custom_styles() { ?> <style type=”text/css”> </style> <?php } add_action( ‘wp_head’, ‘wpse74013_print_custom_styles’ ); The next step is to … Read more

different way to achive stylesheet_url

bloginfo(‘stylesheet_url’) will always return the current theme’s stylesheet. If current theme is a child theme, for example, it will return style.css relative to the child theme’s root rather than the parent theme’s root. bloginfo(‘template_url’) will always return the parent theme’s template directory URL. So using <?php bloginfo(‘template_url’); ?>/style.css will always be the parent theme’s stylesheet. … Read more