[Resolved] Conditional Hooks

Home Forums Support [Resolved] Conditional Hooks

Home Forums Support Conditional Hooks

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #574330
    Bassie

    Hi

    Thank you for your GREAT theme!

    I am trying to get a template appear only on one single post (called ‘4 Qualities You Should Expect From Your Cleaning Service’

    Can you please take a look on the php I added – can you spot my mistake?

    <?php if ( is_single ( ‘4 Qualities You Should Expect From Your Cleaning Service’ ) ) : ?>
    [elementor-template id=”446″]
    <?php endif; ?>

    I did as instructed, however instead of the actual template appearing on the site, it just says:

    [elementor-template id=”446″]

    thank you

    Bassie

    #574374
    David
    Staff
    Customer Support

    Hi Bassie, try using this for your base code:

    <?php if ( is_single( 'post slug' ) ) { 
        echo do_shortcode("[elementor-template id='XXXXX']");
    } ?>
    #574641
    Bassie

    Thank you David!

    #574892
    David
    Staff
    Customer Support

    Glad i could help!

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