Site logo

hooks

GP Hooks is_front_page() not working

Hi I am using latest GP Pro and WP versions. For some reason when i try to use the following code in GP Hooks it always tells me i’m on front page. Used within ‘Inside Content Container’ hook.. Execute PHP is selected, it is not disabled. <?php $isfront = is_front_page(); echo "Is front page: " … Read more

Hooks, side by side

Hi. Is it possible to place 2 (or more) hooks side by side in the same page element, say, in the header? ATM if I put two hooks in the same page position they appear one on top of the other one, and would like to know how to place them side by side, parallel. … Read more

Executing a hook on a specific page, is this possible?

I have a script that works well in the wp_footer hook section. This is the script from Calendly: <!– Calendly badge widget begin –> <link href=”https://assets.calendly.com/assets/external/widget.css” rel=”stylesheet”> <script src=”https://assets.calendly.com/assets/external/widget.js” type=”text/javascript”></script> <script type=”text/javascript”>Calendly.initBadgeWidget({url: ‘https://calendly.com/dave-ellison/15-min’, text: ‘Schedule call with me!’, color: ‘#00a2ff’, branding: false});</script> <!– Calendly badge widget end –> Is it possible to execute this hook … Read more

Links not working on home page of a bilingual website using Hooks

Hi there, I am currently working on a website for a client. I have used Polylang to do a bilingual web site. In the hook location “after header content”, I’ve added a link that goes to another page. My issue is: on both home page, the link doesn’t work but does on the other pages. … Read more

Simple left side menu with no site header globally

I cannot seem to suppress site header entirely with disable elements for specific pages/posts, is there a simple technique or code I can insert using GP hooks. I’m not a coder so please be precise with your helpful answer. I searched this forum and found this: .site-header { display: none; } but when I put … Read more

After comment form hook

Hello! Is there a hook to put a content after the submit button? Some “after comment form hook” thing. Thank you

Question about Hooks and my Header ( Elementor )

Hi, i started to create my first site with GeneratePress and Elementor Pro. I created a custom Header with Elementor and take the shortcode to GP Hooks in ( wp_head ) – [elementor-template id=”486″]. But if look on my site now, the header seems to be slow and at first i see a text on … Read more

One live and one disabled hook?

I have 2 hooks that I want to put in Before Header (in the Premium plugin.) There an mother organization banner that I want to always display, and some alert text that I want to keep disabled, unless there is a problem I need to alert users about. Basically one is always on and the … Read more

Slider in GP Hooks Doesn't Load After Adding Gallery

I’m just starting to build a new site at http://awesomewebsites4u.com/ I have a slider in GP hooks that works just fine until I added a photo gallery with 3 images. Is there something that I can do to make both work?

PHP filter with two conditionals

Hi. I added a Yummly button to recipe posts on one site using GP Hooks “After Entry Title.” <?php if ( in_category( 'food' ) ) { ?> <a href="//yummly.com" rel="nofollow" class="YUMMLY-YUM-BUTTON">Yum</a> <script src="https://www.yummly.com/js/widget.js?wordpress"></script> <?php } ?> It looks great on the posts, but it’s also showing up on the category pages, which I don’t want … Read more