Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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-product

    What is happening here and why can’t I get the sidebar on the right side?

    #349362

    Anyone 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.

    #349706

    Hey!

    Try adding this to your custom CSS.

    .single-product-main-image { margin-left: 50px !important; margin-right: 0px !important; float: right !important; }
    

    Regards,
    Elliott

    #349811

    That 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?

    #350227

    Hey!

    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 9 years, 5 months ago by Elliott.
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.