• Resolved karlo1990

    (@karlo1990)


    I would like to use a shortcode inside my welcome bar, but it just displays as a text. How do I get it to work?

    The shortcode is: [wp-dt-custom start=”next sun” format=”j M”] it is from my plugin “WP Date and Time Shortcode”

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Karina

    (@karinapremio)

    Hey @karlo1990 , thanks for your comment!
    Unfortunately at the moment the welcome bar doesn’t support HTML. I’m sorry for any inconvenience!

    Hello @karlo1990,

    Generally you can use a shortcode anywhere if you know the hook for the text (when there is one). For example:

    // Enable the shortcodes in titles.
    add_filter( 'the_title', 'do_shortcode' );
    add_filter( 'wp_title', 'do_shortcode' );
    
    // Enable the shortcodes for __(), _e(), etc. (any translatable text)
    add_filter( 'gettext', 'do_shortcode' );

    etc. (any other text content hook).

    In your case you may try to use the second one – add_filter( 'gettext', 'do_shortcode' );
    Just place it in the functions.php file of your child thwme.

    Please let me know if that helps.

    I have the same problem. I added the plugin and shortcode and your php in the functions.php for the child theme.
    The page I need help with is:

    https://go.tapsuccess.com/rs25offpro/

    It was working. I spent over $500 on Google Ads. It stopped working and I didn’t realize that until after the campaign. Can you help?

    Let me say this again.

    IT WAS WORKING WITH A SHORTCODE.

    Ah! I used Evergreen Countdown Timer.

    (https://www.ads-software.com/plugins/intelly-countdown/)

    Plugin Support Karina

    (@karinapremio)

    Hey @tapsuccess , thanks for the feedback. I’m sorry but our plug-in indeed doesn’t support shortcodes. I will be passing this on to our developers for review and possible future additions.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Shortcode inside welcome bar not working’ is closed to new replies.