Blogging and Make Money Online Tips

Blogging and Make Money Online Tips

How To Display A Featured Post or Ad On Your Blog

Posted by Udegbunam Chukwudi On July - 3 Under Blogging Tips 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.

Click Here To ReTweet This Post

Bookmark & Share This Post: Twitter | Digg | Del.icio.us | StumbleUpon | Reddit | Email | Print

Related Posts

  1. How To Add Google Adsense To Your Blogger Blog
  2. How To Add NoFollow Attribute To Blog Roll Links
  3. Increase Your Adsense CTR With Section Targeting
  4. How To Add A Favicon To Your Blog & Website
  5. Your Blog Is Filled With Short Posts & Affiliate Links

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

RSS Subscription

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

The use of keywords in the name field is NOT ALLOWED. Please use the following format:

YourName@YourWebsite.

Example: If your name is Bryan and the name of your blog is www.007.com, in the name field, you MUST type in Bryan@007. When your comment gets approved your name will appear like this: Bryan from 007. 007 will be linked to your site.

Drive-By comments like "Thanks for sharing", "Nice post", or spammy comments will be DELETED!

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

Spam Protection by WP-SpamFree

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.