[Resolved] Hide hooks on certain pages

Home Forums Support [Resolved] Hide hooks on certain pages

Home Forums Support Hide hooks on certain pages

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #264643
    Sergio

    Hi. If I’m using hooks to show a custom-made footer, via shortcode from a Elementor Section, how can I hide that footer-hook on certain pages? Because if I create a landing-page by hiding all elements of the page via GeneratePress Add Ons, the hook is still visible in the landing page…
    Tanx!

    #264648
    Leo
    Staff
    Customer Support

    Hi Sergio,

    Checkout the couple solutions in this post: https://generatepress.com/forums/topic/hook-question/

    Let me know.

    #264653
    Sergio

    Thank you. Is there a way to know the id of the generate_before_footer class name or ID, so I can use Simple CSS on the landing page to hide that hook? Or is it better to try the PHP approach?

    #264655
    Leo
    Staff
    Customer Support

    I would say go with the CSS approach. Couple ways to do this:
    – If you want to enter the code in global Simple CSS editor (Dashboard > Appearance > Simple CSS) then you would first need to find the page ID – it’s actually hidden in your URL when you are logged in. Look for post= and that number is your page ID. Or you can use a plugin like: https://wordpress.org/plugins/reveal-ids-for-wp-admin-25/

    – Enter the code in the Simple CSS metabox at the bottom of each page where you want to hide the hooks.

    Let me know if this is helpful.

    #264708
    Sergio

    Thanks Leo!!!! I assigned a CSS class to my elementor section, and with Simple CSS I was able to hide it from specific pages.
    Awesome support!

    #264709
    Leo
    Staff
    Customer Support

    You’re welcome 🙂 We try our best!

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