Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

Viewing 4 posts - 1 through 4 (of 4 total)

Creating extra content box on front page for RSS feed

Home Forums Free Theme Support Theron Lite Creating extra content box on front page for RSS feed

  • #25779

    Angie

    Can you tell me how to create an extra content box on the front page, similar to the welcome box, but right below it, so I can add my RSS widget feed there?

    #25895

    Towfiq I.

    administrator

    Open up index.php and add this:

    
    <?php if ( is_home() ) { ?>
    <div id="thn_feed"><p>
    your feed code here...
    </p></div>
    <?php } ?>
    

    after this:
    <!--Welcome message END-->

    then add this to your stylesheet:

    /*Welcome Message*/
    #thn_feed{ width:90%; padding:5%; font-size:14px; color:#888; text-align:center; float:left; margin-top:30px; background:#fff; box-shadow:0px 0px 2px rgba(0, 0, 0, 0.10);-moz-box-shadow:0px 0px 2px rgba(0, 0, 0, 0.10); -webkit-box-shadow:0px 0px 2px rgba(0, 0, 0, 0.10);}
    #thn_feed p{ line-height:21px;}

    #30661

    Angie

    Do shortcodes work in the index.php? I’m trying to add my RSS feed shortcode there, but the feed doesn’t appear, just the shortcode itself. See site at: http://bit.ly/14Aiwov

    Any ideas on what I should do to get the feed to appear? The shortcode and feed works fine when I try it on other pages.

    #30719

    Towfiq I.

    administrator

    yes, like this:

You must be logged in to reply to this topic.