I am using some code that you all provided to me so I am able to use icons shortcodes in the topbar. I extracted it from another site that it works on just fine. It does not work the same way on this site and I cannot figure out why. I have been trying to make it work for hours and am missing something…just not sure what something is.
Code I have added to the functions.php file in my child theme:
// Allow shortcodes in the topbar content
// =============================================================================
function allow_custom_shortcodes($contents) {
$contents = do_shortcode($contents);
return $contents;
}
add_filter('x_option_x_topbar_content', 'allow_custom_shortcodes');
// =============================================================================
It is exactly the same code I used on the site it works fine on.
Site it works on - www.evergyed.com
Site it has the same code in the functions file and it is not working on - http://coc.gwo.mybluehost.me
I also found other code on the forum and tried it but no success. Thanks in advance for your assistance.