Displaying a news ticker on the front page but not on every page (3 posts)

  1. tanjo
    Posted 5 years ago #

    Hey guys,

    I am fairly new to WordPress. I'd like to display a Newsticker on the front page of my website, but not on every page of my website.

    I put the news ticker code in the header. When I click on a link, the news ticker is on every page. When I put the news ticker code in the index.html, the newticker ends up screwing up the layout of every page.

    Is there a simple way to display something on the main index page and then remove it on all the other pages?


  2. journalt
    Posted 5 years ago #

    This reply won't be a whole lot of help, because I am also looking for the answer to this for a slightly different issue, but I know that to display anything in one page and not another, or in just some pages, but not others you need to modify the CSS files using the page #'s, but I am not sure how to do it.

    I know that I saw this discussed in the Codex somewhere. If anyone knows exactly how to do this or where to find the answer, please reply.

    I'll keep looking and if I get the answer before someone else sends it I'll let you know.

  3. Joshuwar
    Posted 5 years ago #

    You might try Conditional Tags.

    <?php if (is_home()) {?>
     Insert your ticker code...
    <?php }?>

    Does that sound right?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.