How To Display A Featured Post or Ad On Your Blog
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.
- Download the Get-A-Post plug-in, install it and activate it.
- 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.
- 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 -> - 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.
Related Articles You May Like To Read
- Blog Setup Business Meeting & Blog Post Of The Week 23
- How To Add NoFollow Attribute To Blog Roll Links
- How To Add A Floating Bookmarks Panel To Your Blog
- How To Ping Your Blogger Blog For More Traffic
- Increase Your Adsense CTR With Section Targeting
Great tip, although it does involve messing with the php. Can you not just add the featured post as a page?
@ Free Gadgets: So far so good I’ve tried many featured post plug-ins to get this to work and this is the only one that has been fruitful
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.
@Tinnitus Treatment:Let me know how it pans out for you.
Nice tips. Thanks.
Always wondered how to do this. Thanks for sharing will try it out.
Does anyone know any alternatives just in case?
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 =-.
@ 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 =-.
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 =-.
@Susi: Thanks for the comments. I really wish I had a resource on meta tags for blogspot blogs. I knwo of two excellent sites with blogspot fixes. You could probably find what you are looking for there. Check out MakeBlogPopular and Blogger Buster and 9 Killer SEO tips for Blogspot Bloggers. When you subscribe to Blogger Buster’s feed you get a free ebook on modifying blogger templates.
It looks a bit complicated to me.
But thanks for the instruction!
Glad that I know a bit about coding.
tinnitus miracle