PHP Snippet – Run only on specific page

[ad_1]

Hi

I’m loving your plugin thank you.

I’m not sure what I’m doing wrong and was hoping for some guidance please. When I add a new snippet for a specific Gravity Form ID, it runs beautifully on that form all over my site.

But if I only want that snippet to run on ONE specific page eg. mysite.com/my-test-page/ and enable Smart Conditional Logic with Page URL Contains my-test-page, it doesn’t run at all. (see image at https://ibb.co/d4hVTSj)

I’m not sure what I’m doing wrong. I’ve left “Insert method” as Run Everywhere – do I need to change that when I change Smart Conditional Logic? (I did try the shortcode method, but when I inserted this in the page, above my gravity form it crashed the page)

I’d only like the PHP snippet to run on that particular page, not be called on every single page, if possible please.

Also – do you have a way for me to check if the PHP snippet is actually running? using Chrome Dev tools or similar.

Thanks in advance 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer