hooks

Before header hook

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

Hooks on Single Page and Posts but not homepage

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

Use 'Disable Elements' value in my PHP

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

GP Hooks

Hi GP support, I hope I’m not too much of a burden for your support, but I am really struggling trying to get your magnificent GP theme to behave like I want it to… maybe I am asking too much… The thing is that I am trying to build an Aviation website with a News … Read more

After site-footer Hook

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

Adding Breadcrumbs to GP

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

Problem hooking into generate_after_entry_header

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

After Content – excerpt only?

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

excluding category in gp hooks

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