gp hooks

GP hooks to insert text above Jetpack Related images?

I have a text box that I currently have appear at the bottom of certain posts using PHP in GP hooks pasted in the After Content area under Appearance > GP hooks. But apparently Jetpack related posts and miscellaneous post meta at the bottom count as post meta. Ideally, I’d like the text box to … Read more

Google Search Console Site Verification via Google Tag Manager

Hello, Currently I need to validate my website with Google Search Console. I have previously done this using Google Analytics, however, after I switched to Google Tag Manager, I have been having some problems. When I look at where to put this snippet, it says it has to go DIRECTLY below the body tag. However, … Read more

Input sum not working with javascript + GP hooks

Hey Tom, I need help, can you please tell me what I am doing wrong? Here is the code I used: http://jsfiddle.net/markwylde/gjz9h/ Here is the page I am working on: http://www.muhrprofessionalbuildings.com/wp/comparison/ And an image of what my javascript looks like inside your GP hook section. Thank you!

Enclosing all content exactly within a div

Hiya Tom + others! I’d like to enclose all of my site (header, nav, content, footer etc) inside one div, that’s exactly the size of the site content’s outer edges. I’ve started by enclosing everything between “Before Header” and “After Footer Content” in a div with GP Hooks. What’s the CSS needed? I’d need this … Read more

PHP filter in GP Hooks for posts with a certain tag

Hi, in GP Hooks, I’m using PHP filters to add text after the content on posts of specific categories. For example, <?php if ( in_category( 'calls-for-submissions' ) && is_single() ) { ?> What do I do if I want to add content on posts with specific tags? Would it be in_tag instead of in_category?

GP Hooks + Shortcode

Hey Tom, http://www.4kidzsports.org/ This is a website I am working on, and I am having trouble displaying your “lightweight social icons widget” in a GP hook after my header. I installed the widget short-code plug-in you have recommended before on other forum threads and then did my code like the following too: <?php echo do_shortcode( … Read more

define( 'GENERATE_HOOKS_DISALLOW_PHP', true );

Hi, Since updating GP I am getting this message: DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hooks. I found te article stating that I should add the following to GP Hooks: define( ‘GENERATE_HOOKS_DISALLOW_PHP’, true ); Do I need to place this in a specific section? It looks like it’s not working … Read more

Responsive various

HI, I´m having some problems with header items in responsive modes. 4 items: 1.- Which are the breakpoints for mobile? I´ve read somewhere you told 1024px and 760px, but my site does not change at 1024 (I have GP Premium 1.3) And I don´t see anywhere to configure responsive items, like breakpoints, diferent logo and/or … Read more