How can I use one stylesheet for multiple sub-sites on my multi-site network?

First off, you’ll obviously need to be using the same parent theme for all sites. You then set up each sub-site with a child-theme for that parent theme. To use the same stylesheet on multiple sites, add the following code to the functions.php file of each sub-site: function import_shared_style_sheet() { wp_enqueue_style( ‘shared-style-sheet’, content_url( ‘/themes/SOURCE-THEME/style.css’) ); … Read more

How to display custom style based on theme option select box

Just put your dynamic CSS inside of a callback function, hooked into wp_print_script, e.g. function mytheme_custom_css() { ?> <script type=”text/css”> <?php if ( of_get_option(‘show_post_sidebar’, true ) ) { ?> .post{width:720px} <?php } ?> </script> <?php } add_action( ‘wp_print_scripts’, ‘mytheme_custom_css’ ); Add as few, or as many, conditional CSS rules as you need.

jQuery UI styles conflicting with TinyMCE dialog

It should work just fine if you enqueue your script & stylesheet within functions.php file. This is how I do that (feel free to copy & paste, it should work out of the box): function load_my_admin_js() { wp_register_script(‘jquery-ui’,”https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js”); wp_enqueue_script(‘jquery-ui’); } add_action(‘admin_init’, ‘load_my_admin_js’); function load_my_admin_css() { wp_enqueue_style( ‘jquery-ui’, ‘http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css’); } add_action( ‘admin_print_styles’, ‘load_my_admin_css’); Don’t forget to … Read more

Trying to figure out why my child theme is trying to access a file that doesn’t exist

From your comment: I found this code in the functions.php of the parent theme, is that what you were looking for? // bootstrap wp_register_style(‘bootstrap’, get_template_directory_uri() . ‘/css/lib/bootstrap.css’); > wp_enqueue_style(‘bootstrap’); In your Theme’s file structure, do you find /css/lib/bootstrap.css? If so, then it should be loading properly. If not, do you find bootstrap.css anywhere else in … Read more

How to change header dimensions in WordPress?

Put that code (this is the output): <a href=”http://carolbadre.wordpress.com/”> <img width=”1000″ alt=”” src=”http://carolbadre.files.wordpress.com/2012/03/cropped-grr.jpg”> </a> Which must look different in the backend inside a div… Then you can css it and use height: auto..

IE and WordPress

Well, add these lines to functions.php of your theme. add_action(‘wp_head’,’ie_only’); function ie_only(){ ?> <!–[if IE]> <link rel=”stylesheet” type=”text/css” href=”https://wordpress.stackexchange.com/questions/53149/<?php echo get_bloginfo(“stylesheet_directory’); ?>/ie-only.css” /> <![endif]–> <?php } Now create a css file with this name (ie-only.css) and put that into your theme’s directory.

How do I make header.php use different css for different pages?

Create a primary stylesheet and enqueue as normal. Then, make a series of conditional statements using WP core functions – is_home(), is_404(), is_page_template(‘template.php’) and so on. In each of those conditionals, enqueue the stylesheet you want that overwrites your core stylesheet, using your primary (style.css) stylesheet as a dependency. Untested code, but should work: function … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)