How To Make Money Online In Nigeria

Dofollow Blogging, Wordpress & MMO Tips Blog

SPONSORED ADS
2CheckOut Payment ProcessorNetfirms DomainsHostgator HostingIncome Blogging GuideWeb Hosting For NigeriansHostportfolio Hosting

How To Display A Featured Post or Ad On Your Blog

Posted by Udegbunam Chukwudi Under Blogging Tips On July 3, 2009 10 COMMENTS

Ever thought of displaying an Ad, announcement, Featured Post  or better still An Opt-in form on your blog’s home page so that it’s the first thing your readers see when they arrive at your blog?

Well, here’s a simple way of implementing it.

  1. Download the Get-A-Post plug-in, install it and activate it.
  2. Write your Featured Post, Ad, Announcement or Opt-In as if it were a regular post but date it like 2 – 3 months back so it doesn’t repeat itself on your home page. Publish it and take note of it’s ID.
  3. Add the following code to your theme’s index.php right before the function <?php if (have_posts()) : ?>

    <!–The Intro section starts.Start editing here –>

    <div class=”intro”>
    <?php get_a_post(22); ?>       <!-Replace 22 with the Post ID that you want to show –>
    <h1><?php the_title(); ?></h1>
    <?php the_content(); ?>

    </div>
    <!–The Intro section ENDS.STOP editing here ->

  4. Add this code to the end of your theme’s style.css file. Edit it to fit your blog’s layout and you are done.

    /****INTRO SECTION STYLING ****/

    .intro{
    margin:0px 0px 30px 20px;
    padding:10px;
    border:1px solid #CCCCCC;
    width:570px; /* EDIT THIS WIDTH */ height:390px;           /* EDIT THIS HEIGHT */
    background:#F4F7FC;   /* background color of the box */
    }

    /****INTRO SECTION STYLING ENDS****/

Drawbacks: I had to remove it from my blog because whenever my readers searched my blog, the featured post or ad kept appearing above the search results and that was somewhat of annoying.

Hope it works out for you. Cheers!

P.S: As always, thanks to Ampercent! He took the time to figure it out for me without asking for a dime or favor in return.

For more blogging tips, be sure to read the following posts:
  1. How To Add NoFollow Attribute To Blog Roll Links This tutorial is going to be straight forward. It’s designed for wordpress bloggers who want to display their blog roll links but don’t want to pass any Page Rank (PR) juice to the links...
  2. Optimize CSS & Speed Up Blogger Blog Load Time! The longer your readers have to wait for your blog to load, the higher the frequency with which they abandon your blog for someone else’s unless of course they are desperate for the information on your blog Optimizing your blog’s CSS is one of the many ways of decreasing your...
  3. How To Add Google Adsense To Your Blogger Blog Incorporating Google Adsense into Blogger blogs is quite tricky but this post makes it easy....

Share Save on Delicious PrintEmail This Post

Social Tagging: Blogging Tips > featured post

Get Full Blogging and Make Money Online Tips Delivered Via E-mail

RSS Subscription

Please check your inbox and spam folder for the confirmation email

10 Responses to “How To Display A Featured Post or Ad On Your Blog”

  1. Great tip, although it does involve messing with the php. Can you not just add the featured post as a page?

  2. I will definitely try this. I’ve been looking for a solution similar to this one. Seems simple enough for a newbie like me. Thanks a lot for sharing.

  3. Atul says:

    Nice tips. Thanks.

  4. Leon says:

    Always wondered how to do this. Thanks for sharing will try it out.

    Does anyone know any alternatives just in case?

  5. As Leon said, I’m also very much interested in alternatives to this.
    Strictly Online Biz´s last blog ..SOB’s Top 5 Wordpress Plug-in Alternatives

  6. @ udegbunam : Thanks for sharing the ideas in a detailed post here. If you need to Remove the Featured post from the search page that can also be achieved. Do let me know if i can help you with that

    I also did a Detailed analysis here :

    http://technotip.org/how-to-show-a-wordpress-post-as-featured-article/
    Amit Banerjee´s last blog ..Bulk check Google PageRank Of all Internal pages Of a Blog

  7. susi says:

    do you have any posts here about blogger blog tweaks? I’m really clueless about meta tags and things, and I would like to add meta tags to my blogspot blog. Thanks
    susi´s last blog ..Free Kindle Books|Download Free Books on Amazon Kindle

Leave a Reply

PLEASE PLEASE PLEASE! I highly recommend you go through my revised comment policy before commenting.

All transactions with commenters on this blog are @ your own risk. StrictlyOnlineBiz will not be held responsible for any transaction gone wrong.

CommentLuv Enabled

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. If you're not cool with this, please DO NOT submit your comment. Thank you!

Also note that comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

SUBSCRIBE TO FULL BLOG UPDATES

RSS Feed


Follow Me On Twitter
Site Navigation