Black Friday sale! Get up to 25% off GP Premium! Learn more ➝

[Resolved] Slideshow on home page only

Home Forums Support [Resolved] Slideshow on home page only

Home Forums Support Slideshow on home page only

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #115983
    Ralph van Essen

    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.

    #116009
    Tom
    Lead Developer
    Lead Developer

    Try this instead:

    <?php if ( is_front_page() ) : ?>
          Shortcode in here
    <?php endif; ?>
    #116066
    Ralph van Essen

    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;

    #116067
    Ralph van Essen

    I’m using Fluid Responsive Slideshow: https://wordpress.org/plugins/fluid-responsive-slideshow/

    #116116
    Tom
    Lead Developer
    Lead Developer

    So it’s missing the <?php once you save?

    Are you making sure “Execute PHP” is checked in that hook?

    #116138
    Ralph van Essen

    I made mistake in copying the code.
    Thanks for your support, Tom!

    #116198
    Tom
    Lead Developer
    Lead Developer

    Glad I could help 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.