Site logo

hooks

Conditional for GP Hooks

Hi I have a few hooks that I only want in certain pages. For a hook that’s excluded on the homepage, I use this: <?php if ( ! is_front_page() ) : ?> content <?php endif; ?> My questions are: 1) how should the conditional be if I want this same hook to be excluded in … Read more

Shortcode Display Area

Hello! right now I’m using elementor to make templates and assign them via shortcode in the GP hooks widget. Inside my article everything looks fantastic. But on my pages it is simply not nice, I wonder if there’s a way to display the shortcodes only on certain areas. I know nothing about coding, but maybe … Read more

Feature Request : "Create Widget Area" addition to GP Hooks

Hey Tom, I often need to add a widgetized are to a GP Hooks. Right now I’m doing it manually, i.e. I need to : 1) Add a code snippet like that using the code snippets plugin: function gpwidg_generatepress_widgets_init_below_title() { register_sidebar( array( 'name' => 'GP Below Post Title', 'id' => 'below_post_title_gp1', 'before_widget' => '<div>', 'after_widget' … Read more

After Content hook not implemented on pages using Sections?

Hi 🙂 I’m adding social media share buttons manually by placing a PHP shortcode into the ‘After Content’ hook. The buttons are appearing on ALL pages and posts except the pages that are built using Sections. Is there any way to make the buttons appear on those too? Thanks. Andy

How to Hook into Footer Tag Area

I would like to hook php code within the <footer> tag area. When I use the hooks, before footer content, after footer content or wp_footer Generatepress creates a div outside the footer tag. What must I do to insert php code into the html footer tag section?

Hooking custom content after the comments section

GeneratePress doesn’t seem to have a custom hook after the comments field. Is there a general WordPress hook I could use, and if so, how? I need to insert a YouTube video after the comments field on single blog posts.

Cookie Consent

Hi, I’m trying to implement the “Cookie Consent” with https://silktide.com/tools/cookie-consent/download/. It generates the code that it is below; it shall be include before the </head> label. I tryed to do it introducing the code in the “WP-Head” hook in GeneratePres but when I press the “Save Hoooks” button I’m redirect to http://comermindfulness.com/wp-admin/options.php page that doesn’t … Read more

Hook Locations – suggestion …

Hey Tom … just a thought and maybe I am overlooking it, but the only place I can see a “visual” of the available hook locations is on the GeneratePress site itself: http://demo.generatepress.com/hook-locations/ Would it be possible to implement an image somewhere in the admin dashboard that we can easily reference, vs having to load … Read more

Add content just below the comments with Elementor Pro

Hello! I´m not a programmer and I would like help with this: Using the Elementor Peo as visual editor in a post I want to add other modules (ej: portfolio and a button) but just below the comments section, but with the pro elementor I can not add a section there. I dont want to … Read more