How to stop a hook from running on a certain page
Hello, I have a before header hook that I don’t want to run on my home page. How can I disable this for my home page? Thank you!
Hello, I have a before header hook that I don’t want to run on my home page. How can I disable this for my home page? Thank you!
Hi there, I’m utilizing before header hook to display a message, how would I make this a sticky header similar to a sticky menu. Thanks in advance
Hey- I’m using GeneratePress and Elementor to build my site. I’ve created a page title section in Elementor and I’d like for it to display on my single pages and single posts, but not the homepage or archives. I’ve tried several solutions listed in the forums, but the title keeps popping up on my homepage … Read more
Hi Tom/all, I’m using a hook in ‘generate_after_header’ to display (or not) featured images on my page – it all works well. I’m using it as a global rule for certain custom post types, but there are now some where I want hide the featured image, but ONLY if the pages default option ‘Disable Elements: … Read more
I want to wrap everything from the <header> element to the .site-footer element in a div and then style that div accordingly. Possibly create a drop shadow for all the wrapped elements. I can add an opening div using the generate_before_header hook but I don’t see anything like a generate_after_footer hook. I can use wp_footer … Read more
Good morning Tom, I have been reading through quite a few posts related to getting breadcrumbs on a GP site but it seems a little overwhelming as I do not know PHP and am fearful I will make a mistake. It seems most references are made to the Yoast plugin which is what I use … Read more
Hello there, i’m facing a strange result when trying to use the generate_after_entry_header hook. The situation is as follows: I’m using the metabox plugin to generate specific data to courses pages (such as dates, locations, etc) and i’m trying to make those infos to appear right after the entry header so i’m hooking into the … Read more
Is there a way to use the After Content hook so it only applies to excerpts? Alternatively, is there a snippet that functions as an after_excerpt hook? I’m attempting to insert a social share shortcode so it appears only on blog post excerpts but am having no luck finding anything in the knowledgebase about it. … Read more
Hi there I have separate PHP hooks I use in the After Header hook area, one for the category for-readers and one for the category for-writers. Occasionally, a post falls into both categories and the content for both hooks shows up, which i don’t want (see linked page). I am using <?php if ( in_category( … Read more