The awesome WordPress X Theme's Top Bar doesn't support shortcodes out of the box, but with this simple code update it can. Here's what you need to do to make shortcodes work in X Theme Top Bar:-
- Create a _topbar.php file under your child theme in the following location 'wp-content/themes/child-theme-name/framework/views/global/' (substitute 'child-theme-name' for your child theme)
- Add the following PHP code
And that's all you need to do. This code will allow the X Theme to display shortcodes and is particularly useful for displaying widgets and other forms of rich content like Gravity Forms, Google Maps, Social Sharing like Easy Social Share Buttons or other WordPress Widgets.
Join in the Discussion