Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1053717
    Houston
    Participant

    I am trying to put some social icons in the Topbar Content area but when I do use the shortcode is shows the shortcode as is instead of the social icon. I put this code in my child themes functions.php file and it still did not work.

    What now?

    add_filter('theme_x_topbar_content','x_topbar_do_shortcode');
    
    function x_topbar_do_shortcode($content) {
     return do_shortcode( $content );
    }

    http://www.splitlightdesigns.com/tammp/

    Many thanks,
    Houston

    #1053723
    Houston
    Participant
    This reply has been marked as private.
    #1053901
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Please update your function code to this:

    add_filter('x_option_x_topbar_content', 'top_bar_content_shortcode');
    function top_bar_content_shortcode ( $content ) {
    return do_shortcode ( $content );
    }

    If this does not work, please provide us FTP credentials and the shortcode that you’re trying to add.

    Cheers!

    #1055197
    Houston
    Participant

    That did the trick, thank you.

    #1055627
    John Ezra
    Member

    You’re most welcome!

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