[Resolved] Hooks on one page

Home Forums Support [Resolved] Hooks on one page

Home Forums Support Hooks on one page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #260547
    Katja

    Hi,

    maybe there is a similiar post here, but I cannot find it.

    I want to add a hook just on one page (in my case, home page). I used hooks for the slideshow-shortcode, but now, I can see the slideshow on every page and post.

    Or is there another solution?

    My idea is to add a slideshow and then, you should see the latest posts.

    Many thanks,
    Katja

    #260563
    Jamal

    Hi

    I think the blog page header is the best place to add your slideshow “customize > blog > page header”

    If you want to keep using GP Hooks, you can make it appear only on the home page

    <?php if ( is_home() ) : ?>
          YOUR SLIDESHOW HERE
    <?php endif; ?>

    Agressively support the kind of work you want to see. Buy it. Talk about it. Review it.

    #260564
    Katja

    Dear Jamal,

    the code works fine – many thanks!

    Best,
    Katja

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