WordPress.org

Ready to get started?Download WordPress

Forums

News-Ticker
How to get news ticker on home page sidebar only.. (2 posts)

  1. pkverma
    Member
    Posted 7 months ago #

    plugin is great but just one things I want to customize...

    I added necessary function/code in sidebar.php

    <!-- BEGIN: #secondary -->
    <div id="secondary" class="g1-sidebar widget-area" role="complementary">
    <h3>Latest News</h3>
    <div id="news">
    <?php if ( function_exists('insert_newsticker') ) { insert_newsticker(); } ?>
    </div>
    .......
    .........
    </div>

    Now news ticker coming on all page's sidebar.

    But i want it to add in only home page sideabr.

    Is there any way to do this, so if side bar is primary/home then only

    then only display news ticker...

    http://wordpress.org/plugins/news-ticker/

  2. Jessica
    Member
    Posted 2 weeks ago #

    Hi Pkvermn,your post was a while ago so you probably figured it out but you would want to create a different sidebar.php for the home page and call to that. Or you could add some PHP that would only display the widget when on the home page...

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.