How to add a class to the element?

Here is a way of adding the class. Replace blog withe the slug of the page. Example – This class will be added only on example.com/blog. Put this code in your header.php <?php if($post->post_name === ‘blog’){ ?> <html class=”html-homepage”> <?php } else { ?> <html> <?php ?>

how to setup content on a static frontpage with css and xhtml

I would set up a new page template (see http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates), create a new page (Pages > New) and set it to use that template, and then set WordPress to use that page as the homepage (Settings > Reading). Then you can fill the custom page template with whatever content you want in between wp_head() and … Read more

How put links in wordpress dynamic sidebar?

If you useWidget Logic it adds a new filter widget_content which you can hook your function to and add link to it somthing like: add_filter(‘widget_content’,’add_link_to_widgets’); function add_link_to_widgets($content){ return $content . ‘<br /><a href=”http://www.domain.com”>my link</a>’ } Update You are missing the point, the plugin is great if you want to use his ability to limit the … Read more

Add Piwik Tracking code to page

Add the tracking code to one of your theme files, most likely footer.php. The easiest way to do this is to go to your admin panel and go to Appearance > Editor, and on the right side, find the entry for Footer (footer.php), and then insert the code right before the closing </body> tag. Update … Read more

How can I wrap html around the output of the_time function?

Please see this documentation for the usage about the_time(). You are not supposed to add html inside the parameter of the_time(). (edit: use get_the_time() with in string concatenation) To solve this, try this code: echo ‘<div class=”post_date”><div class=”month”>’.get_the_time(‘F’).'</div>’.'<div class=”day”>’.get_the_time(‘d’).'</div><div class=”year”>’.get_the_time(‘Y’).'</div></div>’; edit: corrected to the use of get_the_time()