With the social media wars seemingly at an end, the choice of which buttons to include at the end of each post is a fairly easy one to make. In this site, I only use GooglePlus and Facebook. In this post I’m going to show you how to add their buttons to your WordPress posts.
You might ask why I only use g+ and FB? They are the only two that I find useful, and that seem to rank highly in search engine results.
The first step to adding your social buttons is to create a new file in your theme folder called social.php
Read More »
WordPress is the most popular blogging platform for anyone who wants real control over their template and interaction with readers, and often we want to put some code directly into the homepage, and no other page. You could use a plugin, but if you prefer making template changes, here’s a quick tutorial.
The easiest way is to duplicate the index.php in your theme folder, and rename it to home.php, and then making the changes that you want in home.php, upload to your host, and see them in action.
The downside of creating a home.php, especially if the coe you want to use on your homepage is minor, is that you’ll now have to maintain two versions of the index.php. One of them for the homepage, and the original for all other pages that don’t have their own template.
There is however another way, that I’ve been using for ages because it makes it easier for me to manage my themes with fewer files.
What I do is place two extra lines in my index.php, with the code between them, and voila, I don’t need to maintain two versions of the same file. Read More »
Using custom fields to change post layout. If you use WordPress for your website you may know that you can now use custom fields at add extra content to your blog, for example a lot of people might use custom fields to include a post signature or using custom fields for SEO, to include a meta description or keywords.
However custom fields in WordPress are a lot more powerful than just including content in your post. They can also be used to alter the look of your post, and this is where they can be very powerful. Let’s use the example of a real estate website, because custom post types are a great use for realtors, allowing them to add extra details like price, size of property, features, embed map links etc.
If you aren’t already using it, install Custom Content Type Manager in your WordPress plugins, and watch the video presentation on the plugin page in the WordPress repository to understand how to create custom fields. Read More »