Category Archives: Tips & Tricks

tips and tricks to master wordpress themes

69 | Mark Comments by Current User

g+

To highlight comments of the currenly logged-in user, add this plugin: Add a file with the above code into the /wp-content/plugins folder; activate the plugin under ‘appearance – plugins – installed plugins’; and add a corresponding style to the stylesheet … Check the whole post »

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

68 | Comments on the ‘Posts Page’ in WordPress

g+

If you are using a static home page and have set one of your other pages to be the ‘posts page‘ [Codex], then there is no direct way to allow comments on that page. You will need to do some … Check the whole post »

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

66 | Title Attribute for Post Thumbnail

Title Attribute for Post Thumbnail
g+

The ‘featured image’ in WordPress automatically outputs the image alt attribute, but no title attribute. Those two attributes are used for different reasons: – the alt attribute is used to output alternative information if the image is inaccessible, for instance … Check the whole post »

Posted in Tips & Tricks, WordPress | Tagged , , , , , , | 1 Response

65 | Posts in Two Or Three Columns – Twenty Twelve

g+

If your index and archive pages are getting too long, or if you want to compact the information within those pages a little bit, for instance because the featured images above each post are just too large, consider to change … Check the whole post »

Posted in Tips & Tricks, Twenty Twelve, WordPress | Tagged , , , , , , , | 36 Responses

64 | Page-Of-Posts Template for Twenty Twelve

g+

Page templates are a good way of customising the layout of WordPress sites – and the Codex contains the example code of a ‘Page Of Posts’ page template for the current default theme Twenty Eleven. With the future default theme … Check the whole post »

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

63 | A Sidebar Template for a Page in the ‘One-Column’ Layout in Twenty Eleven

g+

This article describes the necessary coding to create a page template with a sidebar within a ‘one-column’ layout of Twenty Eleven; the example is for a right sidebar.
Create your own page template from a copy of the sidebar-page.php template; edit the Template Name; correct the coding in sidebar.php; adapt the body_classes in functions.php; set a max width for the template. Check the whole post »

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

62 | Insert the Featured Image into the Post Content with Shortcode

g+

Somebody asked today, how to insert a ‘featured image’, aka post thumbnail, into the content of a post. Obviously this cannot be done with the usual WordPress function ‘the_post_thumbnail()’ as the php code would not get rendered in the post’s … Check the whole post »

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

61 | Sidebar on the Left – Twenty Twelve

g+

A quick fix to move the sidebar location in a child theme of Twenty Twelve; add these styles to style.css of the child theme: caveat: this simplified set of styles has some problems with the formatting of the widgets in … Check the whole post »

Posted in Tips & Tricks, Twenty Twelve, WordPress | Tagged , , , , | 11 Responses

60 | Show Page Title and Content of the ‘Posts Page’ in WordPress

g+

When you set a static front page and at the same time set a Posts Page, WordPress will automatically use index.php (or home.php *) to display the Posts Page; as described in the Codex, you’ll lose the output of the … Check the whole post »

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

59 | Show Description for Header Images in Twenty Eleven

Show Description for Header Images in Twenty Eleven
g+

This code is for a child theme of Twenty Eleven, because the direct editing of the default theme is not recommended. Since wp3.4, the function get_custom_header() takes care of some of the information of the header images, such as width, … describe it all … »

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