<?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>Sidebar on single product page in woocommerce showing on wrong side &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/feed/</link>
		<description></description>
		<lastBuildDate>Tue, 04 Nov 2025 12:18:14 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-324068</guid>
					<title><![CDATA[Sidebar on single product page in woocommerce showing on wrong side]]></title>
					<link>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-324068</link>
					<pubDate>Wed, 08 Jul 2015 08:12:23 +0000</pubDate>
					<dc:creator>rosskilleen</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there, </p>
<p>From an older thread here I got some code to make the sidebar appear on the single product page in woocommerce.  However, it is appearing on the wrong side of the page.  I have the theme set to show content on right and sidebar on left which it does everywhere else on the site, except these pages.  Also, the search box within the sidebar has become too long for the border of the sidebar.</p>
<p>Hope you can help.</p>
<p>Many thanks</p>
<p>Ross</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-324135</guid>
					<title><![CDATA[Reply To: Sidebar on single product page in woocommerce showing on wrong side]]></title>
					<link>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-324135</link>
					<pubDate>Wed, 08 Jul 2015 09:51:28 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Ross,</p>
<p>Can you share the code you have copied from the forum and provide us your site url<br />
so we could take a closer look.</p>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-324251</guid>
					<title><![CDATA[Reply To: Sidebar on single product page in woocommerce showing on wrong side]]></title>
					<link>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-324251</link>
					<pubDate>Wed, 08 Jul 2015 12:18:56 +0000</pubDate>
					<dc:creator>rosskilleen</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there, </p>
<p>Many thanks for your reply.  URL is <a href="http://lightsign.ie/product/professional-screens/philips-32-professional-display-screen-bdl3250el/" rel="nofollow">http://lightsign.ie/product/professional-screens/philips-32-professional-display-screen-bdl3250el/</a></p>
<p>Code is below:</p>
<p>if ( ! function_exists( &#8216;x_get_content_layout&#8217; ) ) :<br />
  function x_get_content_layout() {</p>
<p>    $stack          = x_get_stack();<br />
    $content_layout = x_get_option( &#8216;x_&#8217; . $stack . &#8216;_layout_content&#8217;, &#8216;content-sidebar&#8217; );</p>
<p>    if ( $content_layout != &#8216;full-width&#8217; ) {<br />
      if ( is_home() ) {<br />
        $opt    = x_get_option( &#8216;x_blog_layout&#8217;, &#8216;sidebar&#8217; );<br />
        $layout = ( $opt == &#8216;sidebar&#8217; ) ? $content_layout : $opt;<br />
      } elseif ( is_singular( &#8216;post&#8217; ) ) {<br />
        $meta   = get_post_meta( get_the_ID(), &#8216;_x_post_layout&#8217;, true );<br />
        $layout = ( $meta == &#8216;on&#8217; ) ? &#8216;full-width&#8217; : $content_layout;<br />
      } elseif ( x_is_portfolio_item() ) {<br />
        $layout = &#8216;full-width&#8217;;<br />
      } elseif ( x_is_portfolio() ) {<br />
        $meta   = get_post_meta( get_the_ID(), &#8216;_x_portfolio_layout&#8217;, true );<br />
        $layout = ( $meta == &#8216;sidebar&#8217; ) ? $content_layout : $meta;<br />
      } elseif ( is_archive() ) {<br />
        if ( x_is_shop() || x_is_product_category() || x_is_product_tag() || x_is_product()  ) {<br />
          $opt    = x_get_option( &#8216;x_woocommerce_shop_layout_content&#8217;, &#8216;sidebar&#8217; );<br />
          $layout = ( $opt == &#8216;sidebar&#8217; ) ? $content_layout : $opt;<br />
        } else {<br />
          $opt    = x_get_option( &#8216;x_archive_layout&#8217;, &#8216;sidebar&#8217; );<br />
          $layout = ( $opt == &#8216;sidebar&#8217; ) ? $content_layout : $opt;<br />
        }</p>
<p>      } elseif ( x_is_buddypress() ) {<br />
        $opt    = x_get_option( &#8216;x_buddypress_layout_content&#8217;, &#8216;sidebar&#8217; );<br />
        $layout = ( $opt == &#8216;sidebar&#8217; ) ? $content_layout : $opt;<br />
      } elseif ( is_404() ) {<br />
        $layout = &#8216;full-width&#8217;;<br />
      } else {<br />
        $layout = $content_layout;<br />
      }<br />
    } else {<br />
      $layout = $content_layout;<br />
    }</p>
<p>      if ( is_page_template( &#8216;template-layout-content-sidebar.php&#8217; ) ) {<br />
        $layout = &#8216;content-sidebar&#8217;;<br />
      } elseif ( is_page_template( &#8216;template-layout-sidebar-content.php&#8217; ) ) {<br />
        $layout = &#8216;sidebar-content&#8217;;<br />
      } elseif ( is_page_template( &#8216;template-layout-full-width.php&#8217; ) ) {<br />
        $layout = &#8216;full-width&#8217;;<br />
      }</p>
<p>    return $layout;</p>
<p>  }<br />
endif;</p>
<p>Very best,</p>
<p>Ross</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-324314</guid>
					<title><![CDATA[Reply To: Sidebar on single product page in woocommerce showing on wrong side]]></title>
					<link>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-324314</link>
					<pubDate>Wed, 08 Jul 2015 13:26:39 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Ross,</p>
<p>Please replace your code with this.</p>
<pre><code>
 function x_get_content_layout() {

    $content_layout = x_get_option( &#039;x_layout_content&#039;, &#039;content-sidebar&#039; );

    if ( $content_layout != &#039;full-width&#039; ) {
      if ( is_home() ) {
        $opt    = x_get_option( &#039;x_blog_layout&#039;, &#039;sidebar&#039; );
        $layout = ( $opt == &#039;sidebar&#039; ) ? $content_layout : $opt;
      } elseif ( is_singular( &#039;post&#039; ) ) {
        $meta   = get_post_meta( get_the_ID(), &#039;_x_post_layout&#039;, true );
        $layout = ( $meta == &#039;on&#039; ) ? &#039;full-width&#039; : $content_layout;
      } elseif ( x_is_portfolio_item() ) {
        $layout = &#039;full-width&#039;;
      } elseif ( x_is_portfolio() ) {
        $meta   = get_post_meta( get_the_ID(), &#039;_x_portfolio_layout&#039;, true );
        $layout = ( $meta == &#039;sidebar&#039; ) ? $content_layout : $meta;
      } elseif ( is_page_template( &#039;template-layout-content-sidebar.php&#039; ) ) {
        $layout = &#039;content-sidebar&#039;;
      } elseif ( is_page_template( &#039;template-layout-sidebar-content.php&#039; ) ) {
        $layout = &#039;sidebar-content&#039;;
      } elseif ( is_page_template( &#039;template-layout-full-width.php&#039; ) ) {
        $layout = &#039;full-width&#039;;
      } elseif ( is_archive() ) {
        if ( x_is_shop() || x_is_product_category() || x_is_product_tag() ) {
          $opt    = x_get_option( &#039;x_woocommerce_shop_layout_content&#039;, &#039;sidebar&#039; );
          $layout = ( $opt == &#039;sidebar&#039; ) ? $content_layout : $opt;
        } else {
          $opt    = x_get_option( &#039;x_archive_layout&#039;, &#039;sidebar&#039; );
          $layout = ( $opt == &#039;sidebar&#039; ) ? $content_layout : $opt;
        }
      } elseif ( x_is_product() ) {
         $layout = &#039;sidebar-content&#039;;
      } elseif ( x_is_bbpress() ) {
        $opt    = x_get_option( &#039;x_bbpress_layout_content&#039;, &#039;sidebar&#039; );
        $layout = ( $opt == &#039;sidebar&#039; ) ? $content_layout : $opt;
      } elseif ( x_is_buddypress() ) {
        $opt    = x_get_option( &#039;x_buddypress_layout_content&#039;, &#039;sidebar&#039; );
        $layout = ( $opt == &#039;sidebar&#039; ) ? $content_layout : $opt;
      } elseif ( is_404() ) {
        $layout = &#039;full-width&#039;;
      } else {
        $layout = $content_layout;
      }
    } else {
      $layout = $content_layout;
    }

    return $layout;

  }
</code></pre>
<p>Hope that helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-325414</guid>
					<title><![CDATA[Reply To: Sidebar on single product page in woocommerce showing on wrong side]]></title>
					<link>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-325414</link>
					<pubDate>Thu, 09 Jul 2015 09:19:26 +0000</pubDate>
					<dc:creator>rosskilleen</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks a mil, the code seems to have worked for the sidebar positioning, however the search box is extending way beyond the border: <a href="http://lightsign.ie/product/professional-screens/philips-32-professional-display-screen-bdl3250el/" rel="nofollow">http://lightsign.ie/product/professional-screens/philips-32-professional-display-screen-bdl3250el/</a></p>
<p>I was also wonder if it was possible to show the categories in the breadcrumbs.  When you are in parent category or sub-categoy, the breadcrumbs appear fine: </p>
<p><em><strong>home &gt; products &gt; parent category &gt; sub-category</strong></em></p>
<p>But when you are in the single product page the categories disappear and the breadcrumbs appear like:</p>
<p><em>home &gt; products &gt; single product</em></p>
<p>Is there a way to show the parent and sub categories before the product?</p>
<p>Thanks for all your help and attention.</p>
<p>Very best,</p>
<p>Ross</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-325456</guid>
					<title><![CDATA[Reply To: Sidebar on single product page in woocommerce showing on wrong side]]></title>
					<link>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-325456</link>
					<pubDate>Thu, 09 Jul 2015 10:27:50 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Ross,</p>
<p>To fix the search overflowing, you can add this under <strong>Custom &gt; CSS</strong> in the <strong>Customizer</strong>.</p>
<pre><code>
.widget_product_search form input[type=&quot;search&quot;] {
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;  
   box-sizing: border-box;  
}
</code></pre>
<p>With regards to product categories</p>
<p>I’m sorry, I’m afraid there isn’t a simple way to do this right now. It would require a good deal of modification to the breadcrumbs function (x/framework/functions/global/breadcrumbs.php) This is a good idea though. We’ll add it to a list a feature requests for consideration in future development.</p>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-325593</guid>
					<title><![CDATA[Reply To: Sidebar on single product page in woocommerce showing on wrong side]]></title>
					<link>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-325593</link>
					<pubDate>Thu, 09 Jul 2015 13:34:49 +0000</pubDate>
					<dc:creator>rosskilleen</dc:creator>

					<description>
						<![CDATA[
						<p>Ok no problem, thanks a mil for the search box fix.</p>
<p>Very best,</p>
<p>Ross</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-325695</guid>
					<title><![CDATA[Reply To: Sidebar on single product page in woocommerce showing on wrong side]]></title>
					<link>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-325695</link>
					<pubDate>Thu, 09 Jul 2015 15:42:05 +0000</pubDate>
					<dc:creator>Rupok</dc:creator>

					<description>
						<![CDATA[
						<p>You are welcome Ross!</p>
<p>Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.</p>
<p>Thanks for using X.</p>
<p>Cheers!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-326648</guid>
					<title><![CDATA[Reply To: Sidebar on single product page in woocommerce showing on wrong side]]></title>
					<link>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-326648</link>
					<pubDate>Fri, 10 Jul 2015 12:56:50 +0000</pubDate>
					<dc:creator>rosskilleen</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Sorry to be a pain! Two product pages are randomly displaying the sidebar at the very bottom of the page and I can&#8217;t see any difference between these and the pages that display it in the correct position. URLs are as follows:</p>
<p><a href="http://lightsign.ie/product/media-players/aopen-de3100-basic-media-player/" rel="nofollow">http://lightsign.ie/product/media-players/aopen-de3100-basic-media-player/</a><br />
<a href="http://lightsign.ie/product/media-players/aopen-digital-engine-de6140-media-player/" rel="nofollow">http://lightsign.ie/product/media-players/aopen-digital-engine-de6140-media-player/</a></p>
<p>Hope you guys can help.</p>
<p>Many thanks</p>
<p>Ross</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-326692</guid>
					<title><![CDATA[Reply To: Sidebar on single product page in woocommerce showing on wrong side]]></title>
					<link>https://theme.co/archive/forums/topic/sidebar-on-single-product-page-in-woocommerce-showing-on-wrong-side/#post-326692</link>
					<pubDate>Fri, 10 Jul 2015 13:45:07 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Ross,</p>
<p>It looks like there are excess div tags on those pages.</p>
<p>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</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>

					
		
	</channel>
	</rss>

