Shortcodes In Logo Bar

I understand you can use code below to activate shortcodes in the topbar.

add_filter(‘x_option_x_topbar_content’, ‘top_bar_content_shortcode’);

function top_bar_content_shortcode ( $content ) {
return do_shortcode ( $content );
}

I was wondering how to activate shortcodes in the logobar? I am using the stacked logobar on a staging site: http://theorthobee.wordpresswebsitedesigns.org and want to add icons/headlines around the logo.

Hi there,

Are you adding the shortcodes through directly to the template file?

If so, please try wrapping the shortcode in the do_shortcode function like this:

do_shortcode("[feature_headline type=\"left\" level=\"h2\" looks_like=\"h5\" icon=\"film\"]Video[/feature_headline]");

https://developer.wordpress.org/reference/functions/do_shortcode/

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.