Tag Archives: WordPress

61 | 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

60 | 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

59 | 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

58 | 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 , , , | 6 Responses

57 | 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

56 | 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 , , , , , | 2 Responses

54 | 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

49 | WordPress Post Thumbnails with Caption

g+

GREAT NEWS: since wp4.6, WordPress has just the right function for featured image captions: https://developer.wordpress.org/reference/functions/the_post_thumbnail_caption/ This is a tidying up of a WordPress support forum topic – nothing really that I came up with myself. The question is how to … capture it all … »

Posted in Easy Coding for Wordpress, WordPress | Tagged , , , , , | 5 Responses

46 | Styling the First Post Different

g+

How to style the first / last / latest / newest post in a WordPress site different? The default advice usually is to use a counter variable and a conditional statement to check for the first post in the loop; … Check the whole post »

Posted in Easy Coding for Wordpress, WordPress | Tagged , , , | 6 Responses

42 | 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