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:-

  1. 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)
  2. 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.