Archived topic
Hide hooks on certain pages
5 replies · Started by Sergio on January 16, 2017
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!
Hi Sergio,
Checkout the couple solutions in this post: https://generatepress.com/forums/topic/hook-question/
Let me know.
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?
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.
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!
You're welcome :) We try our best!