Site logo

Archived topic

hooks stoped working

3 replies · Started by Moses on March 5, 2018

Viewing posts 1–4 of 4

I don't know what happened but I put a code in the GP hook : After Content:

<?php if ( is_single() && ! is_product() ) { 
echo do_shortcode('[elementor-template id="1287"]');
} ?>
<?php if ( is_single() && ! is_product() ) { 
echo do_shortcode('[elementor-template id="1281"]');
} ?>

It should (and used to) show 2 elementor created sections, for a newsletter sign-up, and for related posts, but for some reason it show nothing...

my website

This likely has to do with whatever is going on in your other topic as well. Let's see if figuring out what's going on in your other topic fixes this issue.

Hello

I put the following and it works for me

<?php if ( is_single()) : ?>
[elementor-template id="19576"]
<?php endif; ?>

Regards

I believe the above issue was being caused by is_product() not being a function (WooCommerce was deactivated).

Thanks! :)

This archived topic is closed to new replies.