Category Archives: Tips & Tricks

tips and tricks to master wordpress themes

90 | Show Custom Site Title or Tagline per Page

g+

to have a custom site title and/or tagline on different pages (static pages only) of your WordPress site; one possible approach: add the code to functions.php of your theme; could also be made into a plugin as it is not … Check the whole post »

Posted in Tips & Tricks, WordPress | Tagged , , , , , | Not open for comments

89 | Better Gallery Alignment in Twenty Seventeen

g+

The new theme Twenty Seventeen shows the right thumbnail image in the default 3-column gallery with just a little space to its right,  which is particular noticable when you post a full width image directly above or below the gallery. … Check the whole post »

Posted in Tips & Tricks, Twenty Seventeen, WordPress | Tagged , , , , | Not open for comments

87 | Showing the Content of the ‘Posts Page’ before all Posts

g+

If you have set a static front page, and defined a ‘posts page’, WordPress will use the index template to show the list of posts. This also means that any content you might have entereed into the ‘posts page’ will … Check the whole post »

Posted in Tips & Tricks, Twenty Fourteen, WordPress | Tagged , , | Not open for comments

86 | Adding Widgets Between Posts in the Index Page

g+

For a child theme of the (current) default theme Twenty Fifteen – a way to add a new sidebar aka widget area to show after the first post in the index page; making use of the action hook ‘the_post’. you … Check the whole post »

Posted in Tips & Tricks, Twenty Fifteen, WordPress | Tagged , , , , , , | Not open for comments

79 | Injecting Multiple adsense Ads into a WordPress Loop

g+

The versatile code injects for instance adsense ad codes several times into the posts of an index or archive page, starting with a pre-set post, and then repeated in regular intervals (up to a set limit of ads per page). … Check the whole post »

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

74 | Alphabetize Category Posts Using ‘pre_get_posts’ Action

g+

Occasionally you want to have a different sort order in some of the category archives, for example, you want to output the posts of a specific category in alphabetical order. Instead of having to create a category template for each … Check the whole post »

Posted in Easy Coding for Wordpress, Tips & Tricks, WordPress | Tagged , , , , , , , | Not open for comments

72 | Linking or Enqueuing Stylesheet in WordPress Themes

g+

There are several ways of adding a stylesheet to a WordPress theme; examples: A: linking the stylesheet (in the head section of header.php) – linking the main stylesheet style.css: or – linking another stylesheet custom.css: B: enqueuing the stylesheet (in … Check the whole post »

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

71 | Integrate Pagination Plugins into Twenty Twelve

g+

The ‘next/prev’ posts links are done with a function in Twenty Twelve; twentytwelve_content_nav(). That function is pluggable, which makes it easy to change it in a child theme of Twenty Twelve. To integrate for instance the plugin ‘wp_pagenavi’, you would … Check the whole post »

Posted in Tips & Tricks, Twenty Twelve, WordPress | Tagged , , , , , | Not open for comments