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 ..
Category : Theme Tutorials
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 ..
Share links have become critical to every website. If you don’t have share links on your blog posts, make sure to add them with one of these methods. Using a Widget The easiest way to add share buttons to your website is to: Install & activate the Gabfire Widget Pack plugin Activate the Share Items ..
Displaying the author’s avatar and biography is useful for adding context to the post. Reader’s like to know who wrote the article and may even wish to contact the author directly. Adding an author box allows readers to learn a bit more about the article and read more by that author. It’ll look something like ..
How to display JavaScript ads In order to show your ads, you will need to install the AdRotate plugin. This plugin has many features to help you show specific ads on different pages, but the primary feature we will focus on is the Ad shortcode. The AdRotate plugin can generate a new shortcode that is ..