Category : Theme Tutorials

Home » Tutorials » Archive by category : Theme Tutorials (paged 2)

In some cases, some posts requires a second title right below main title. To implement the subtitle, add this code to your single.php file: <?php $subtitle = get_post_meta($post->ID, ‘subtitle’, true); if ($subtitle !== ”) { echo ‘<p>’ . $subtitle . ‘</p>’; } ?> Below this code: <h1> <?php the_title(); ?> </h1> Finally, add this code ..

Read more

If you’ve ever wanted to add the innerpage slider only to posts in a certain category, follow these simple steps. Newer Themes Open each of the single-xx.php files and replace this code: <?php gab_innerslider(); ?> with this code: <?php if (in_category(‘N’)){ gab_innerslider(); } ?> Make sure to replace N with the proper category ID. You ..

Read more