Posts appearing on static Home page when using Feature Sliders..
-
Hello All.
I really hate to post, but I’ve been trying to fix this problem all day now and I’ve haven’t got anywhere.
Here’s the site I’m working on https://www.superlites.co.uk/superlites/
I’m using a static home page. On the static home page I want to use a feature slider.
I’ve created a Custom Template for the Static Home page (by copying the original page.php template, renaming it page2.php and removing the sidebar) as I want just a single column layout there, rather that the two column layout throughout the rest of the site.
I installed the WP Slideshow plugin (https://www.iwebix.de/wp-slideshow-wordpress-plugin), adjusted the settings as directed and inserted the necessary line of php code into my Custom Page Template.
The WP Slideshow appears on my static home page, but it also displays the 3 posts that it is rotating below the slider itself.
I only wanted the slider to display, not the post and thought that was what this plugin would provide. I’ve used other rotators and sliders in the past and have never have seen the posts pulled into the static home page. So I start a bit of trial and error, removing snippets of the page2.php file, saving, and then viewing the home page to see if the posts disappeared. Nothing.
By this point I thought it must be a problem with the WP Slideshow plugin, so I uninstall it and try another plugin.
This time I try the WP Nivo Slider Plugin (https://www.geniusdeveloper.com.br/wordpress-en/2010/05/new-plugins-nivo-slider-for-wordpress/?lang=en). I watch the video, follow the install instructions, add slider images to the posts and add the necessary line of php to my page2.php file.
Again, the slider displays as it should on the static home page, but underneath I have the the 3 posts that are being featured in the slider.
You can see my problem on the site currently – https://www.superlites.co.uk/superlites/
As the smae problem was happening with two separate plugins Im guessing the problem is with my page2.php file.
I’ve spent hrs searching Google and www.remarpro.com to see if anyone else has encountered this problem but came up with nothing.
I’ve made a number of WordPress sites now but my knowledge of php is poor at best. There maybe something glaringly obvious to a seasoned wordpress developer in my page2.php file but to a php novice like me, I’m stuck.
Here is my page2.php custom page template :
[Code moderated as per the Forum Rules. Please use the pastebin]
If anyone has any idea where I am going wrong or any suggestions as to how I might be able to resolve this problem, it would be hugely appreciated. Like I said, I’ve been looking at this all day now and really don’t know what else to do.
Thanks for taking the time to look at this.
Mark.
- The topic ‘Posts appearing on static Home page when using Feature Sliders..’ is closed to new replies.