Archived topic
Slideshow on home page only
6 replies · Started by Ralph van Essen on June 22, 2015
Hello Tom,
Last week we have installed your GP premium theme on our website. (www.qlcompany.nl/wordpress)
Now I want to add a slideshow via GP Hooks (after header) to the homepage only.
I found this solution with execute PHP, but it seems not to work.
<?php if ( is_home() ) : ?>
[pjc_slideshow slide_type="ql-homepage"]
<?php endif; ?>
To adjust the theme I'm using your childe theme and plugin code snippets.
Try this instead:
<?php if ( is_front_page() ) : ?>
Shortcode in here
<?php endif; ?>
Hello Tom,
Thanks for your quick reply!
I have tried you solutions, but the slideshow is still visible on for example my test page.
What I found out was when I save the code, it will be displayed like this:
if ( is_front_page() ) : ?>
Shortcode in here
<?php endif;
I'm using Fluid Responsive Slideshow: https://wordpress.org/plugins/fluid-responsive-slideshow/
So it's missing the <?php once you save?
Are you making sure "Execute PHP" is checked in that hook?
I made mistake in copying the code.
Thanks for your support, Tom!
Glad I could help :)
