[Resolved] hooks stoped working

Home Forums Support [Resolved] hooks stoped working

Home Forums Support hooks stoped working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #512572
    Moses

    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

    GeneratePress 2.0.2
    GP Premium 1.5.6
    #512578
    Tom
    Lead Developer
    Lead Developer

    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.

    #512770
    chete

    Hello

    I put the following and it works for me

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

    Regards

    #513056
    Tom
    Lead Developer
    Lead Developer

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

    Thanks! 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.