<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>Shortcode In Top Bar &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/shortcode-in-top-bar/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/shortcode-in-top-bar/feed/</link>
		<description></description>
		<lastBuildDate>Sun, 16 Nov 2025 21:04:40 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-185588</guid>
					<title><![CDATA[Shortcode In Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-185588</link>
					<pubDate>Sun, 18 Jan 2015 16:48:25 +0000</pubDate>
					<dc:creator>William Y</dc:creator>

					<description>
						<![CDATA[
						<p>Hello. Can shortcode work in X top bar now? I recall at first it could not, but maybe with the new updates you have made those possible&#8230; 🙂 Just wanted to add a shortcode in the top bar&#8230;</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-186033</guid>
					<title><![CDATA[Reply To: Shortcode In Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-186033</link>
					<pubDate>Mon, 19 Jan 2015 11:09:17 +0000</pubDate>
					<dc:creator>Darshana</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there, </p>
<p>Thanks for writing in! Because this requires a template change, I&#8217;d advise that you setup a <a href="http://theme.co/x/member/kb/how-to-setup-child-themes/" title="Child Themes" target="_blank" rel="nofollow">child theme</a>. This allows you to make code changes that won&#8217;t be overwritten when an <strong>X</strong> update is released. After your child theme is setup, please review how we recommend making template changes in <a href="http://theme.co/x/member/kb/customization-best-practices/" rel="nofollow">Customization Best Practices</a>.</p>
<p>Then you can copy the file &#8220;_topbar.php&#8221; file into your Child Theme and Edit the file using a Text Editor and add the shortcode as follows below the line <code>&lt;p class=&quot;p-info&quot;&gt;</code>.</p>
<p><code>&lt;?php echo do_shortcode(&#039;[SHORTCODE-HERE]&#039;); ?&gt;</code></p>
<p>Hope that helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-188342</guid>
					<title><![CDATA[Reply To: Shortcode In Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-188342</link>
					<pubDate>Wed, 21 Jan 2015 20:56:41 +0000</pubDate>
					<dc:creator>William Y</dc:creator>

					<description>
						<![CDATA[
						<p>Alright. I will try that&#8230; Thanks!!!! 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-188571</guid>
					<title><![CDATA[Reply To: Shortcode In Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-188571</link>
					<pubDate>Thu, 22 Jan 2015 00:55:21 +0000</pubDate>
					<dc:creator>William Y</dc:creator>

					<description>
						<![CDATA[
						<p>Hello, what should be the path of the file in the child theme? &gt;&gt;&gt;&gt;&gt;&gt;&gt;</p>
<p>I tried the following and it didn&#8217;t work&#8230; CHILD THEME/framework/views/global/_topbar.php  </p>
<p>========================= CONTENT ===============================</p>
<p>&lt;?php</p>
<p>// =============================================================================<br />
// VIEWS/GLOBAL/_TOPBAR.PHP<br />
// &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
// Includes topbar output.<br />
// =============================================================================</p>
<p>?&gt;</p>
<p>&lt;?php if ( x_get_option( &#8216;x_topbar_display&#8217;, &#8221; ) == &#8216;1&#8217; ) : ?&gt;</p>
<p>  &lt;div class=&#8221;x-topbar&#8221;&gt;<br />
    &lt;div class=&#8221;x-topbar-inner x-container-fluid max width&#8221;&gt;<br />
      &lt;?php if ( x_get_option( &#8216;x_topbar_content&#8217; ) != &#8221; ) : ?&gt;<br />
      &lt;p class=&#8221;p-info&#8221;&gt;&lt;?php echo<br />
<strong>&lt;?php echo do_shortcode(&#8216;[SHORTCODE-HERE]&#8217;); ?&gt;</strong><br />
 x_get_option( &#8216;x_topbar_content&#8217; ); ?&gt;&lt;/p&gt;<br />
      &lt;?php endif; ?&gt;<br />
      &lt;?php x_social_global(); ?&gt;<br />
    &lt;/div&gt;<br />
  &lt;/div&gt;</p>
<p>&lt;?php endif; ?&gt;</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-188750</guid>
					<title><![CDATA[Reply To: Shortcode In Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-188750</link>
					<pubDate>Thu, 22 Jan 2015 06:34:03 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi William,</p>
<p>Path should be wp-content/themes/x-child-integrity-light/framework/views/global/_topbar.php</p>
<p>If that doesn&#8217;t help, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:</p>
<p>&#8211; Link to your site<br />
&#8211; WordPress Admin username / password<br />
&#8211; FTP credentials</p>
<p><strong>Don&#8217;t forget to select Set as private reply. This ensures your information is only visible to our staff. </strong></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-190602</guid>
					<title><![CDATA[Reply To: Shortcode In Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-190602</link>
					<pubDate>Sat, 24 Jan 2015 05:25:14 +0000</pubDate>
					<dc:creator>William Y</dc:creator>

					<description>
						<![CDATA[
						<p>Hello,</p>
<p>I&#8217;m just thinking maybe the older way you suggested is conflicting with the new way you&#8217;re suggesting&#8230;</p>
<p>Sometime ago you suggested adding the code below in functions.php </p>
<p>======================================================</p>
<p>add_filter(&#8216;theme_mod_x_topbar_content&#8217;,&#8217;x_topbar_do_shortcode&#8217;);</p>
<p>function x_topbar_do_shortcode($content) {<br />
 return do_shortcode( $content );<br />
}</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-191097</guid>
					<title><![CDATA[Reply To: Shortcode In Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-191097</link>
					<pubDate>Sun, 25 Jan 2015 12:06:07 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Create <strong>_topbar.php</strong> file under <strong>YOUR CHILD THEME -&gt; framework -&gt; views -&gt; global</strong> and add this code in there:</p>
<pre><code>&lt;?php

// =============================================================================
// VIEWS/GLOBAL/_TOPBAR.PHP
// -----------------------------------------------------------------------------
// Includes topbar output.
// =============================================================================

?&gt;

&lt;?php if ( x_get_option( &#039;x_topbar_display&#039;, &#039;&#039; ) == &#039;1&#039; ) : ?&gt;

  &lt;div class=&quot;x-topbar&quot;&gt;
    &lt;div class=&quot;x-topbar-inner x-container max width&quot;&gt;
      &lt;?php if ( x_get_option( &#039;x_topbar_content&#039; ) != &#039;&#039; ) : ?&gt;
      &lt;p class=&quot;p-info&quot;&gt;&lt;?php echo x_get_option( &#039;x_topbar_content&#039; ); ?&gt;&lt;/p&gt;
      &lt;?php echo do_shortcode(&#039;[SHORTCODE-HERE]&#039;); ?&gt;
      &lt;?php endif; ?&gt;
      &lt;?php x_social_global(); ?&gt;
    &lt;/div&gt;
  &lt;/div&gt;

&lt;?php endif; ?&gt;</code></pre>
<p>Now instead of <code>[SHORTCODE-HERE]</code> put your shortcode in code above.</p>
<p>Thank you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-337475</guid>
					<title><![CDATA[Reply To: Shortcode In Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-337475</link>
					<pubDate>Wed, 22 Jul 2015 23:06:19 +0000</pubDate>
					<dc:creator>andisites</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, I&#8217;ve just tried this on my own site for the Subscribe2 plugin (the shortcode is [subscribe2]), and it&#8217;s not working.  The URL is <a href="http://http://109.199.101.20/~efcnetwo/" rel="nofollow">http://http://109.199.101.20/~efcnetwo/</a></p>
<p>Here&#8217;s the code I put into the copy of _topbar.php that I put into /public_html/wp-content/themes/x-child/framework/views/global:</p>
<pre><code>&lt;?php

// =============================================================================
// VIEWS/GLOBAL/_TOPBAR.PHP
// -----------------------------------------------------------------------------
// Includes topbar output.
// =============================================================================

?&gt;

&lt;?php if ( x_get_option( &#039;x_topbar_display&#039;, &#039;&#039; ) == &#039;1&#039; ) : ?&gt;

  &lt;div class=&quot;x-topbar&quot;&gt;
    &lt;div class=&quot;x-topbar-inner x-container max width&quot;&gt;
      &lt;?php if ( x_get_option( &#039;x_topbar_content&#039; ) != &#039;&#039; ) : ?&gt;
      &lt;p class=&quot;p-info&quot;&gt;&lt;?php echo x_get_option( &#039;x_topbar_content&#039; ); ?&gt;&lt;/p&gt;
      &lt;?php echo do_shortcode(&#039;[subscribe2]&#039;); ?&gt;
      &lt;?php endif; ?&gt;
      &lt;?php x_social_global(); ?&gt;
    &lt;/div&gt;
  &lt;/div&gt;

&lt;?php endif; ?&gt;</code></pre>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-337485</guid>
					<title><![CDATA[Reply To: Shortcode In Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-337485</link>
					<pubDate>Wed, 22 Jul 2015 23:11:58 +0000</pubDate>
					<dc:creator>andisites</dc:creator>

					<description>
						<![CDATA[
						This reply has been marked as private.						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-337640</guid>
					<title><![CDATA[Reply To: Shortcode In Top Bar]]></title>
					<link>https://theme.co/archive/forums/topic/shortcode-in-top-bar/#post-337640</link>
					<pubDate>Thu, 23 Jul 2015 02:05:36 +0000</pubDate>
					<dc:creator>Rue Nel</dc:creator>

					<description>
						<![CDATA[
						<p>Hello There,</p>
<p>Upon checking your site, the form is being displayed by given code already. The code seems to be enclosed with an html comment and that is why it is not showing in the front end. You can check it by viewing the source code of the page. <a href="http://prntscr.com/7vw2v3" rel="nofollow">http://prntscr.com/7vw2v3</a></p>
<p>Please check your subscribe 2 shortcode being displayed. It may sounds like you might be having an issue with a third party plugin or script. Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer&#8217;s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.</p>
<p>Thank you for your understanding.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

