-
AuthorPosts
-
November 11, 2014 at 5:21 am #349200
I have read through the forum and learned about inherited attributes. However, My Shop page is set for right sidebar layout, along with EVERY page in my design.
Here is a link to my test product:
http://thelongislandwoodshoppe.com/product/test-productWhat is happening here and why can’t I get the sidebar on the right side?
November 11, 2014 at 2:08 pm #349362Anyone able to assist here? I have tried everything and I know only a little CSS. I have everything setup for the right hand sidebar somthing seems to be incorrect with the theme.
November 11, 2014 at 10:21 pm #349706Hey!
Try adding this to your custom CSS.
.single-product-main-image { margin-left: 50px !important; margin-right: 0px !important; float: right !important; }
Regards,
ElliottNovember 12, 2014 at 2:04 am #349811That worked but also brought over the featured image and gallery images. I just need the sidebar to be located on the right side like the rest of the theme. What changes to the CSS should be made to make that happen?
November 12, 2014 at 7:00 pm #350227Hey!
That’s not going to be easy but try adding this to your custom CSS.
.template-shop div.product div.images { float: left; margin: 0 40px 0 0; width: 30%; }
And then change lines 931 – 958 in /enfold/config-woocommerce/config.php to this.
# # wrap single product image in an extra div # //add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2); add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20); if(!function_exists('avia_add_image_div')) { function avia_add_image_div() { echo "<div class='single-product-main-image alpha'>"; } } if(!function_exists('avia_close_image_div')) { function avia_close_image_div() { global $avia_config; echo "<div class='single-product-main-image alpha'>"; if(is_product()) { $avia_config['currently_viewing'] = "shop_single"; get_sidebar(); } echo "</div>"; } }
You’ll probably need to play around with the CSS a bit to make it look good.
Regards,
Elliott- This reply was modified 10 years ago by Elliott.
-
AuthorPosts
- You must be logged in to reply to this topic.