REALITYPOD
Internet Tech

Top 10 Ways to Tweak Your WordPress Theme

No 6. Google Analytics Tracking Code

This code will go to your ‘footer.php’, where you should add it above the ‘</body> tag. The code will come from Google itself once you sign up for a free account with Google Analytics. Google Analytics is the most popular tool for tracking your traffic.

No 5. Post thumbnails

Adding the following line to your theme’s ‘functions.php’ will allow for setting a thumbnail for every post with the need for any custom fields or embedding within the post content.

<?php add_theme_support( ‘post-thumbnails’ ); ?>

Then you should insert your post thumbnail image within your loop, using the following tag:

<?php the_post_thumbnail(); ?>

You can also add various thumbnail sizes, and cropping options.

Related posts

The Best Kitchen Items That Make Cooking a Breeze

Realitypod

What Do Americans Believe Tech Will Look Like In 2064? Here’s What They Said

Realitypod

Video: RSS in Plain English

Realitypod