You can use PHP to add it. See this thread to see how to get shortcodes outside the editor: https://ww.wp.xz.cn/support/topic/short-code-in-wp-topbar?replies=5
Hello,
Thank you for you response. I am new to this so I am sorry if I ask seemly stupid questions. So I would access plugins/wp-topbar/edit and edit that way? I am worried.lol
No need to do that.
You can use the PHP option on the TopBar.
1) Create a TopBar.
2) Go to the PHP tab. You can follow the instructions on that page to add PHP to run the shortcode. Try adding this to the “Enter any PHP to use BEFORE the TopBar is generated:”
echo do_shortcode('[ ENTER YOUR SHORTCODE TEXT HERE /]');
Bob
sorry to bother again. I was able to get everything working. But I had a question about locking the topbar so that is does not scroll with the page. Also when I add the counter to the topbar sometimes when it loads it over shadows the menu and the links no longer work. I think the counter may make the topbar a bit too wide and it somehow conflicts with the scroll feature.
thank you for your help.
Look for the “Force Fix” option:
From the FAQ:
What if I want to fix the TopBar to the top of the page?
Use the Force TopBar to Be Fixed On Top of Page (on the Main Options Tab).