• 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?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    You might try Conditional Tags.

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

    Does that sound right?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Displaying a news ticker on the front page but not on every page’ is closed to new replies.