Hi, having trouble only displaying slider on home page.
Created home page using standard twentyeleven theme (i called it homepage). Created home page (Sidebar Template) added the text I want on there etc.
Created slider (Nivo)
I then added in your code to the header.php and all fine. Shows as I want it on home page.
I then created a blank ‘News’ page and also selected the ‘Sidebar template’.
Went to ‘Reading’ and selected that the home page be static and point to the ‘homepage’ page and for posts go to ‘news’ page.
Now the slider appears on both the home and news pages using Sidebar template. Created another page and all fine, no slider showing when it shouldn’t be. Must just be for the page where posts appear? Any help most welcome.
- The topic ‘Only on home page code not working.’ is closed to new replies.