Question about the way that wp_register_script works

For the record this entirely the wrong thing to do. Themes should avoid (read never!) de-register the WordPress registered jQuery scripts (plug-ins should absolutely never do this). If a theme is to de-register the jquery script (to replace it) then it should re-register it properly: wp_register_script( ‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js’); Here-in lies the problem. The above is … Read more

How to know the theme name of a wordpress blog?

This method isn’t always fireproof, but you can often look at the source code (right click on white space in the blog), and look for the word “themes.” For instance, in the case of ltty.wordpress.com, this line appears: <link rel=”stylesheet” href=”http://s2.wp.com/wp-content/themes/pub/inove/style.css?m=1285721595g” type=”text/css” media=”screen” /> The theme is “inove.” A quick Google Search reveals this source: … Read more

Where is definied the theme location for the main menu in a WordPress template?

Menu locations are defined in functions.php You can read the codex for more information on how to define menu locations in functions.php Register Menus Firstly, in your theme’s functions.php, you need to write a function to register the names of your menus. (This is how they will appear in the Appearance -> Menus admin screen.) … Read more

How should I best target dynamically served content?

I think it depends on whether you want it to be unique for each of the four “highlighted” project columns on the homepage, or whether you want each “highlighted project” to be different. Does that make sense? E.g. if you just want each of the four project “columns” on the homepage to look different then … Read more