Title: Shortcode Placement Location
Last modified: August 30, 2016

---

# Shortcode Placement Location

 *  Resolved [evelaurence](https://wordpress.org/support/users/evelaurence/)
 * (@evelaurence)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-placement-location/)
 * hello,
 * I want to add a smartcode to the toolbar for an event countdown. Where would 
   I put this code?
 * thank you
 * [https://wordpress.org/plugins/wp-topbar/](https://wordpress.org/plugins/wp-topbar/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [rfgoetz](https://wordpress.org/support/users/rfgoetz/)
 * (@rfgoetz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-placement-location/#post-6596578)
 * You can use PHP to add it. See this thread to see how to get shortcodes outside
   the editor: [https://wordpress.org/support/topic/short-code-in-wp-topbar?replies=5](https://wordpress.org/support/topic/short-code-in-wp-topbar?replies=5)
 *  Thread Starter [evelaurence](https://wordpress.org/support/users/evelaurence/)
 * (@evelaurence)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-placement-location/#post-6596734)
 * 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
 *  Plugin Author [rfgoetz](https://wordpress.org/support/users/rfgoetz/)
 * (@rfgoetz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-placement-location/#post-6596736)
 * 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
 *  Thread Starter [evelaurence](https://wordpress.org/support/users/evelaurence/)
 * (@evelaurence)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-placement-location/#post-6596738)
 * thank you =)
 *  Thread Starter [evelaurence](https://wordpress.org/support/users/evelaurence/)
 * (@evelaurence)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-placement-location/#post-6596748)
 * 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.
 *  Plugin Author [rfgoetz](https://wordpress.org/support/users/rfgoetz/)
 * (@rfgoetz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-placement-location/#post-6596749)
 * 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).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Shortcode Placement Location’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-topbar_706d6d.svg)
 * [WP-TopBar](https://wordpress.org/plugins/wp-topbar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-topbar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-topbar/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-topbar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-topbar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-topbar/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [rfgoetz](https://wordpress.org/support/users/rfgoetz/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-placement-location/#post-6596749)
 * Status: resolved