Category Archives: Tips & Tricks

tips and tricks to master wordpress themes

58 | Advanced Filter for Tag Cloud Widget Css Classes

Advanced Filter for Tag Cloud Widget Css Classes
g+

The default tag cloud widget does not offer a lot of formatting possibilities, partly because it only outputs one css class with a reference to the tag ID. It uses an inline style, which outputs the font-size, to distinguish the … Check the whole post »

Posted in Tips & Tricks, WordPress | Tagged , , , , , | 3 Responses

57 | Editing Widget Parameters per Filter Function WordPress

g+

If you want to change the parameters of the default widgets, for instance the font sizes of the tag cloud widget, you will notice that you can’t access the codes directly. Editing the core files in the /wp-includes folder is … Check the whole post »

Posted in Easy Coding for Wordpress, Tips & Tricks, WordPress | Tagged , , , , , | 3 Responses

56 | Adding a Custom Widget Area to a WordPress Template

g+

The Codex has a chapter on how to add new widget areas (commonly referred to as ‘sidebars’) to a theme’s template: ‘Widgetizing Themes‘ This example here is to give you the direct code to add to functions.php and to the … Check the whole post »

Posted in Easy Coding for Wordpress, Tips & Tricks, WordPress | Tagged , , , , | 11 Responses

54 | Adsense Ad at Random Position in a Posts Page

g+

This code is made to output an adsense ad (or any other block of output) at a random position within the loop, with the restriction to a preset number of possible positions. Thanks to the tutorials of http://www.php.net/ …

Posted in Tips & Tricks, WordPress | Tagged , | Leave a comment

51 | Twenty Eleven – New Page Template with Sidebar Correction

g+

If you are creating a new page template for a child theme of Twenty Eleven, with a sidebar, you need to correct the body_class output to remove the css class .singular. Add this to functions.php of your child theme: If … Check the whole post »

Posted in Tips & Tricks, Twenty Eleven | Tagged , , | 18 Responses

49 | Mini SEO – a Meta Description Field for Posts and Pages

meat description input field
g+

Modern search engines do not rely on meta descriptions and meta keywords anymore for your ranking. However, they do preferably show a proper added meta description instead of the first few words of the post or page. If you can … Check the whole post »

Posted in Tips & Tricks, WordPress | Tagged , , , , | 13 Responses

48 | Page Template Sidebar Overwrite Theme Options in Twenty Eleven

Page Template Sidebar Overwrite Theme Options in Twenty Eleven
g+

Twenty Eleven already comes with a page template to add a sidebar to static pages. However, this sidebar will always be on the same side as the sidebar on the front  page, ruled by the ‘theme options’. On some pages, … Check the whole post »

Posted in Tips & Tricks, Twenty Eleven, WordPress | Tagged , , , , | 8 Responses

46 | Twenty Eleven – Sidebar and Other Adaptations for Hand-held Devices

g+

As the title says: how can you keep the sidebar on narrow screens such as the iPhone® or iPad® and set a minimum width for your site, using (a child theme of ) Twenty Eleven? The solution lies in the … Be responsive … »

Posted in Easy Coding for Wordpress, Tips & Tricks, Twenty Eleven, WordPress | Tagged , , , , | 31 Responses

43 | Posts in Columns – A New Twist on an Old Problem

g+

To organize posts into three columns (edit: semantically more correct would be to call it ‘three posts per row’ as this is the way the posts are organized), you first need to generate a column dependant css class for each … Check the whole post »

Posted in Easy Coding for Wordpress, Tips & Tricks, WordPress | Tagged , , , , , , , , , | 9 Responses