Author: Aky

  • Style post tags in single post WordPress to decrease bounce rate of blog

    I have already covered few articles to decrease bounce rate of blog, like by creating 404 error pages or styling previous next links in WordPress. In the following article I will explain how beneficial Post Tags are in WordPress and how we can style tags in single posts to decrease bounce rate of blog.

    Why WordPress Tags are useful ?

    TheCreatology Post Tags
    Image Credit: AkyJoe

    Post Tags play a vital role in WordPress as they group similar articles together. Tags works as multiple categories for a blog entry which can be reused in future as an archive of articles. Another reason why I say why WordPress tags are important, is that they describe a visitor, what the article is about.

    How to Style Post Tags in WordPress?

    Usually every WordPress Theme like Thesis Theme has Post Tags enabled in Single Post Entries. You can always style Post Tags using CSS to increase Call to Action. For Instance, you can see the screenshot below, where you can see the post tags in blue.

    TheCreatology Post Styling on WordPress
    TheCreatology Post Styling on WordPress

    Below is the post tags style code which you can add it in style.css or custom.css in case of Thesis Theme.

    Make sure you take backup of style.css or custom.css using FTP, before adding the code in it.

    [css]

    .custom .post_tags a {
    background-color: #e33e00 !important; /*Change Background Color*/
    color: #FFFFFF; /*Change Text Color*/
    line-height: 40px;
    margin: 2px;
    padding: 7px !important;
    text-decoration: none !important;
    }

    [/css]

    The above code is for Thesis Theme Post Tags Styling only. In case of custom WordPress Theme you can simply replace the class according to your Theme. You can play around with the background color and text color, as I have mentioned in the code.

    We’re Done!

    Once you have added the code, refresh on any single post entry to see the effect and you will find something like the screenshot below:

    Style Post Tags for WordPress
    Demo: Post Tags

    WordPress post tags though are optional, but I would recommend people to use WordPress to its best. Winking smile Do you use Post Tags ? Let us know with a simple feedback, by posting comment below.

  • How to add Facebook Send Button in Thesis Theme ?

    You must be aware of latest development from Facebook, that is New Send Button. The Send button allows user to directly share favorite link with friend/s on Email. Recently I explained in the article to add Facebook Send button on WordPress Blog. In the following article we will learn to add Facebook Send Button in Thesis WordPress Theme.

    Facebook Send Button for Thesis Theme

    new-facebook-send-button-on-thesis
    Add Send Button on Thesis

    As we all know about Thesis Theme and its content management with SEO capabilities. Though it is a raw wordpress theme, allowing endless customization for wordpress blog. If you don’t have a copy of Thesis Theme then you can download thesis theme here.  If you are using an old version of Thesis Theme then I recommend you to safely upgrade thesis theme.

    Standalone Send Button in Single Post

    As we all know that Thesis customization is done using thesis hooks which are the overriding functions. To show send button in single post, copy-paste the code snippet in the custom_functions.php.

    Make sure you take full backup of custom_functions.php file using FTP before modifying it.

    [php]
    function joe_adds_send_btn ()  {
    if (is_single()) { ?>
    <div style="float:right; margin:0 10px;">
    <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
    <fb:send href="<?php echo get_permalink(); ?>" font=""></fb:send>
    </div>
    <?php
    }}
    add_action(‘thesis_hook_before_headline’,’joe_adds_send_btn’);
    [/php]

    Facebook Like with Send Button Code

    As mentioned in article add Facebook Send button on WordPress Blog standalone placement for Facebook send button is not that effective. Below is the code to add like with send button in thesis, copy-paste the code snippet in the custom_functions.php.

    Make sure you take full backup of custom_functions.php file using FTP before modifying it.

    [php]
    function joe_adds_send_btn ()  {
    if (is_single()) { ?>
    <div style="float:right; margin:0 10px;">
    <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
    <fb:like href="<?php echo get_permalink(); ?>" send="true" layout="button_count" width="300" show_faces="true" font=""></fb:like></div>
    <?php
    }}
    add_action(‘thesis_hook_before_headline’,’joe_adds_send_btn’);
    [/php]

    We’re Done

    Once we have added the code, now you can refresh any single page entry and you will find it similar to screenshot below:

    Facebook Send button on Thesis
    Facebook Send Button Demo on Single Post

    You can now test the new facebook send button on your Thesis Theme, like playing with different hooks in Thesis Theme and let us know your opinion, which placement is effective for facebook send button, by posting a comment below.

  • How to add Google Analytics Code in WordPress using Thesis Theme ?

    Google Analytics is a Web Analysis Tool, which gives insight of Page Visits and Daily Traffic. Google Team is improving Analytic Product day-by-day, to present more precise and accurate  reports.

    Google analytics for wordpress
    Google Analytics

    In the article we will learn to add Google Analytics Code in WordPress using Thesis Theme. But before that, we will have to setup Google Analytics Profile.

    How to Setup Google Analytics Profile ?

    Setting up Google analytics profile is not a big deal, all you need is a Google Account. If you are using Gmail or any other Google Product, then it clears that you have a Google Account associated. Login into your Gmail or any other Google account, and click here to Access Analytics. You will find something like below as in screenshot:

    Add google analytics to wordpress
    Google Analytics Login Page

    Once we gain access to Google Analytics account, we will have to setup a profile for our website.

    • Click to add new profile on Dashboard.
    • Next screen, enter domain name and select country. You may also refer to screenshot below:
    setup new google analytics profile
    New Google Analytics Profile
    • Once done, click Finish button and we have created the Website Profile.

    Get Google Analytics Code

    Now that we have created our profile we will now, get Google Analytics Code to Verify website.

    • On the Google Analytics Dashboard, click to Edit your listed profile.
    • Next, Click on Tracking Status or Check Status Link.
    • In the next screen it will show you instruction to add tracking code on your website. Grab the Google Analytics Code and paste is on a Notepad file for future reference. (Refer to Screenshot Below)
    Get Google Analytics Code for website
    Grab Google Analytics Code

    Add Analytics Code in WordPress Thesis Theme

    Adding Tracking Code in Thesis Theme is a click-a-way job. Here is how we will be going to do that:

    • Navigate to WordPress Dashboard Admin Panel > Thesis > Site Options.
    • In site options, look for Stats Software/Scripts. Now expand the item and insert the Tracking Code in the Text Area similar to what you can see in the screenshot below:
    add tracking code in thesis theme
    Add Analytics Code in Thesis Site Options
    • Once done, click the Big Green Save Button and we are done.

    We Are Done!

    Now, that we have installed the tracking code on our website, you can now Verify Google Analytics Profile so that Google bots can crawl website, and track each-n-every activity on your website.

    If you have any queries for further help is required you can post comment as your opinion.

  • How to add Pagination in WordPress Blog using Thesis Theme

    Does your blog show Previous-Next Links on home page ? The reason behind the question is the missing swift feature on blog. As we know that, Previous-Next links in Thesis Theme is less prominent, hence they increase bounce rate and pagination is not that effective too. In my previous article, I mentioned about how we can Style Previous Next Links in WordPress to decrease bounce rate. In the following article we will learn to add Pagination on blog to increase efficient paging.

    how to add pagination in wordpress blog
    Efficient Paging

    How to add Pagination in WordPress Blog ?

    Pagination adds an advantage in a blog as making smart navigation on website. In this article we will use WordPress Plugin WP-PageNavi to add pagination on WordPress. But, before we proceed to add pagination in Thesis Theme,  I recommend you to safely upgrade thesis theme.

    Below is a simple 2-Step procedure to add Pagnavi in WordPress blog:

    Step 1: Install PageNavi Plugin

    • Navigate to WordPress Admin Panel > Plugins > Add New.
    • Search for plugin “wp-pagenavi” and install the plugin. Or you can also download the plugin here.
    • Once the plugin is installed, activate it.

    Step 2: Add PageNavi in Thesis Theme

    In order to add pagination on blog page, edit custom_functions.php file and copy-paste the below code snippet.

    Make sure you take full backup of custom_functions.php file using FTP before modifying it.

    [php]

    // Page Navigation
    function joe_adds_page_navi(){
    if (!is_single() && !is_page()){ ?>
    <div id="pagenavi"><?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?></div>
    <?php }}
    add_action(‘thesis_hook_after_content’,’joe_adds_page_navi’);

    [/php]

    We Are Done!

    After adding the code, we are done with the adding pagination to blog page. Once done, refresh the blog page and you will find it similar to screenshot below.

    pagination demo screenshot
    Page Navigation Demo

    Thesis WordPress is a great theme and adding Pagination, just makes it perfect. It is believed that the next version of Thesis Theme will have Pagination preinstalled. Since there is no exact date when it will going to happen, but by that time we can add Pagination manually to Thesis Theme.

    If you have any query or any further assistance is required, you can post comment as your feedback.

  • Tutorial to add Facebook Send Button on WordPress Blog ?

    In a recent update from Facebook which now allow publishers to add Send button on website or blog. Almost everyone on internet has a facebook account and too have a social circle around the globe. Using a new send button user can share information in their network. In a recent post I explained about the Tell a friend button for WordPress, and facebook send button is quite similar to it. In the article we will learn to add new Facebook Send Button on WordPress blog.

    Facebook Send Button on WordPress
    Facebook Send button for WordPress

    How Facebook Send Button Works ?

    The new facebook send button allows users to share your content with their friend using an email to any email address or inbox them on Facebook. A user can also mention the name of the Group and post the URL on the group wall.

    Facebook Send Button Code

    In WordPress blog, effective placement for send button is on single post, as usually a visitor will only share it after go through the post. Below is the send button code for WordPress to add facebook send button on single post and you can add the code in single.php file.

    Make sure you take full backup of single.php file using FTP before modifying it.

    [php]
    <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
    <fb:send href="<?php echo get_permalink(); ?>" font=""></fb:send>
    [/php]

    Is that it ?

    No it is not. The above code snippet will just add Send button on your WordPress blog, but so far I believe this method will not be that effective, as Stand Alone Send button will be less prominent. But, if we combine and add a Facebook Like  Button with Send Button and it will increase your Like Counter as well. Below is the code snippet to add facebook send and like button together, and you can add the code in single.php file.

    Make sure you take full backup of single.php file using FTP before modifying it.

    [php]

    <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
    <fb:like href="<?php echo get_permalink(); ?>" send="true" layout="button_count" width="300" show_faces="true" font=""></fb:like>

    [/php]

    Now, the above code will add Like button followed by new send button. I hope facebook send button will be effective for visitors and sharing information around their networks will be flexible now. Let us know about this new development from facebook by posting a comment below.

    If you have any query or require further assistance, you can post comment as your feedback.

  • Community Website Redesign using Thesis Theme WordPress

    A community website consists of photo galleries, events, newsletter subscriptions and blog.  To make website efficient & productive, TheCreatology in partnership with our Project Manager Ms. Imie Belanger was contacted for designing community website using Thesis Theme with SEO advantage. The package included customizing thesis theme, featured content slider and other essential SEO settings.

    Website was redesigned as per the approved mockup and thereafter was developed and made live. Few references like Thesis Design options and Featured Content Slider for Thesis Theme made it look easy and quite knowledgeable too.

    Below you can see a screenshot of the Community Website:

    PIDCToronto-Screenshot
    Click to Zoom

    If you want something similar for your community website design, you can either hire me or you can use the contact form below and I will get back to you asap!

  • Style Previous Next Links in WordPress to decrease bounce rate

    Everyone is digging deep for blogs tips and WordPress tutorials, on internet, to improve blog performance and efficiency. Most of the Search engine traffic, lands on Single Post of blog and mostly a visitor escapes, if it couldn’t find anything relevance after reading the article. This is annoying for a blogger as it increases Bounce Rate of blog.

    Bounce-Rate-TheCreatology
    Bounce Rate

    In my previous article I explained about how 404 error page helps to decrease bounce rate. But, as mentioned above, that the search engine traffic redirects visitors on single page entries of the blog, hence by styling single post entry will lower bounce rate of blog. In the article we will learn to style Previous Next Links in Thesis Theme. Previous-Next Links adds single post entry pages a navigation so that flow of reading is not affected.

    Previous-Next-Single-Post-Tutorial
    Previous Next Post Links

    Previous Next Links in Thesis Theme

    In thesis theme design options allows to enable and disable previous next on single entry pages. Since in this article we are manually customizing previous next links so we will be using Thesis Hook to configure it. But before we proceed further I recommend you to safely upgrade thesis theme.

    Below is a simple procedure to add and style previous next post in WordPress.

    Add Previous Next Links in WordPress

    In order to add custom previous next links in single entry pages, edit custom_functions.php file and copy-paste the below code snippet.

    Make sure you take full backup of custom_functions.php file using FTP before modifying it.

    [php]
    //Author: AkyJoe
    // Custom Previous Next Links
    function show_previous_next_links() {
    if (is_single()) { ?>
    <div id="prev-next">
    <div class="previous-post"><?php previous_post_link(‘%link’, ‘Previous Post’, TRUE); ?></div>
    <div class="next-post"><?php next_post_link(‘%link’, ‘Next Post’, TRUE); ?></div>
    <div style="clear:both;"></div>
    </div>
    <?php } }
    add_action(‘thesis_hook_after_post’, ‘show_previous_next_links’);
    [/php]

    Style Previous Next Links on Single Post

    Now as we have added the previous next links using the Thesis Hook in single entry page, but in order to make it eye catchy and prominent, we will have to style it by adding the below CSS code snippet in custom.css file.

    [css]
    /*Previous Next Post*/
    #prev-next{font-size:40px; font-family:Arial;border-top: 2px dotted #EEE;}
    #prev-next a{color:#5d9800; display:block;}
    #prev-next a:hover{ text-decoration:underline;}
    .previous-post{background:url(‘images/previous-post-arrow.png’) no-repeat left center; float:left; padding:30px 0 30px 70px;}
    .next-post{background:url(‘images/next-post-arrow.png’) no-repeat right center;float:right; padding:30px 70px 30px 0;}
    [/css]

    Add Image to Previous Next Links

    To make the navigation look more prominent, we can add the below images. Download the images and save upload them under the Thesis Theme custom/images folder.

    next-post-arrow previous-post-arrow

    We Are Done!

    After adding the code and the images, we are done with the styling of next previous links. Once done, refresh any single entry post and you will find it similar to screenshot below.

    Previous-Next-Single-Post-Tutorial
    Final Output: Previous Next Links

    Here we come to the end of this tutorial, where we learned to Style Previous Next Links in WordPress. If you have any query or any assistance is required, feel free to post comment as your feedback.

  • How to add twitter feed in WordPress Blog using Jetpack plugin

    If are you on twitter, then you can display latest tweets on WordPress Blog. By adding twitter feed in Website, visitors can keep track of your latest tweets and one-click to follow you on twitter.

    twitter-stream-whale
    Twitter Stream Illustration

    A latest plugin by automatic JetPack features to add twitter stream in sidebar with ease. In the article we will learn how to add twitter feed in WordPress using Jetpack plugin. Below is a simple stepwise procedure:

    Step 1: Install Jetpack plugin

    I have already mentioned in the article how to install jetpack plugin on wordpress. Once the jetpack is installed proceed to Step 2.

    Step 2: Configure Twitter Widget

    When Jetpack plugin is installed and configured, by default it activates Twitter Widget which can be configured by Navigating to Appearance > Widgets, as you can see in the screenshot below.

    Jetpack plugin twitter widget
    Twitter Widget Jetpack dashboard

    Step 3: Show Tweets on Blog

    In order to display latest tweets on sidebar, follow the procedure below to add twitter widget:

    • Navigate to Appearance > Widgets.
    • Find Twitter (Jetpack) widget in the list and Drag it to sidebar.
    Jetpack Twitter Stream Widget for Sidebar
    Twitter Jetpack Widget
    • Now configure twitter jetpack settings for title, twitter name, number of tweets to show etc. Refer to screenshot below:
    Configure Twitter Widget Sidebar
    Twitter Widget Settings
    • Once done with the settings, click on Save button.

    We are Done!

    As we are done with installation and configuration, now its time to see things live in action. Refresh the website and you will find twitter stream in sidebar similar to the screenshot below.

    Twitter Stream in wordpress sidebar
    Twitter Stream Live on Sidebar

    Here we come to the end of this tutorial, where we learned to add twitter feed in WordPress blog. If you have any query or any assistance is required, feel free to post comment as your feedback.

  • How to add Tell a Friend button without plugin on WordPress Blog ?

    We often find stories and interesting articles online which are worth sharing with friends. Mostly people never miss sharing product reviews, special discounts and offers on website. Tell a friend button  is used to share article with your friends by personal email. Tell a friend button is also known has Email This button, which is similar to share button like tweetmeme button, facebook like or linkedin.

    tell-a-friend-on wordpress
    Sharing something with Friend

    There are many plugins made to add Email button on WordPress, but depending upon third party plugins for simple code is just waste of resources and increasing server load by php calls. In this article, we will learn how to add tell a friend button without plugin in WordPress blog.

    Tell a Friend Button Code

    The analogy behind is that on click of the button, it will open a default email software and will add subject, link of the article and will prompt to enter friend’s email address. Below is the Email button code for WordPress, and you add the code in single.php file.

    Make sure you take full backup of single.php file using FTP before modifying it.

    [php]

    <a class="email-share" href="mailto:?subject=Check this out&BODY=I found this article interesting and thought of sharing it with you. Check it out: <?php the_permalink(); ?>" target="_blank"></a>

    [/php]

    Once done editing the php file, now apply some CSS on it. Copy-Paste the below code snippet in style.css file.

    [css]

    .email-share{
    background:url(‘images/email.png’) no-repeat;
    width:97px;
    height:23px;
    display:block;
    margin:10px 20px 10px 0;
    }

    [/css]

    Download the the following image, by right clicking and Save Image as.. “email.png”

    email

    Place the downloaded image in the Theme Directory as {theme folder}/images/email.png

    We are done!

    After adding all code snippets, refresh the website and open any blog post, and you can see the email button demo below:

    Email button Demo:

    email

    On click of above button, it will send the link of this blog that is cms.thecreatology.com/ to the email address you enter.

    If you have any query or require further assistance, you can post comment as your feedback.

  • How to redirect 404 error page to Homepage in WordPress ?

    In my previous article I explained about significance of 404 error page in website development. If you missed it, then you can read it here Create 404 Error page to decrease bounce rate on WordPress.

    404 error redirect to homepage
    Road block 404 Error, redirect to Home

    The WordPress 404 error page is usually custom coded, and hence it can be enhanced as per our requirements and needs. In this article we will learn how to redirect 404 error page to homepage in WordPress.

    Redirect 404 error page

    Below is a simple procedure to add redirection on 404 error page to homepage of blog.

    • Navigate to Theme Directory and locate 404.php file.
    • If found, open it in any text editor. If you couldn’t find one, then just read how to create 404.php file in wordpress.
    • Copy the below code snippet, and replace it completely with existing code.

    [php]
    <!–?php $URL= get_bloginfo(‘url’); header("Location: $URL"); ?–>
    [/php]

    • Done adding the code ? Now, save the file and upload it to server.

    We are done!

    Adding the above code, will redirect any visitor to Blog’s homepage, if encountered any error or broken links. In a way it can be modified to set custom link as well. only thing is you need to edit line number 3 and add the custom like after “Location: http://www.thecreatology.com”.

    If you think its complex then you can hire me for this virtual assistance.