Implementation of language_attributes function

This function is defined in wp-includes/general-template.php. Use a real IDE for development to find the source of a function faster. If your document is not XHTML and the content is runnung from left to right you don’t need this function. A simple … echo ‘lang=”‘ . get_bloginfo( ‘language’ ) . ‘”‘; … does everything you … Read more

Jquery Theme Roller to WordPress

The most important thing is to hook the functions, that register/enqueue your styles and scripts, at the right “time”. This would be on the admin_*/wp_*/login_enqueue_scripts-hooks. Read about the instruction on WPDevel. This answer provides even more details about the process of registering scripts & styles. If you want to check if your script/style passed certain … Read more

Multiple sub directories for theme template pages

When I want to change a specific part of template, such as header OR footer then I use conditions like this – if(is_404()) { get_header(`error`); //loads header-error.php } else { get_header(); //loads header.php } In your case, you want to load a completely different template, Now the only action hook I can imagine is – … Read more

how would I change background color of a theme using a plugin?

If the theme uses the custom-background functionality of WordPress, then WordPress outputs CSS code in the head which essentially says body.custom-background { … } and it puts the chosen colors and image in there. So most themes sorta expect that to be on the body itself, and to have a custom-background class on the body … Read more

different theme in one website

This is one of the best use cases for WordPress Multisite. There are some plugins (like this one) that do this on a per-page or per-category basis, but I’ve never used them. Multisite has a lot of nice advantages (network-wide updates, user management, etc), along with some fun extra bugs (a lot of the recent … Read more

Does WP, php, or a current framework (woofoo / genesis, etc). Offer a way to schedule text / bg color changes?

You could just create different style sheets for each color profile, and load those depending on which month it is. Here’s a basic example showing how you could load a halloween.css file for october, and an xmas.css file for december. The code below would go in your themes functions.php file: add_action(‘wp_enqueue_scripts’, ‘seasonalCSS’); function seasonalCSS() { … Read more