Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1014645
    whiteoaklibrary
    Participant

    Hi, I am using the Integrity 7 template as a base. I would like to insert a shortcode in my header, right after the logo. The shortcode is a countdown timer (https://wordpress.org/plugins/waiting/) and is [waiting name=”nameofcountdown”]. Is there an easy way I can do this. Example attached. Thanks, Jon

    #1014886
    Rad
    Moderator

    Hi there,

    Thanks for writing in.

    Yes, that’s possible. Please add this code to your child theme’s functions.php

    add_action('x_after_view_global__brand', 'countdown_shortcode', 99);
    
    function countdown_shortcode() {
    echo do_shortcode('[waiting name="nameofcountdown"]');
    }
    

    It may need additional CSS since the header doesn’t expect that structure.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1014645 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>