Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #386877

    Hi,
    Is that possible that next release of Enfold will get the left hand menu on product page?
    Is that too complicated to modify the theme?

    Thanks.
    M

    #387472

    Hey Mariusz!

    We can give you some CSS to use to change it to the right.

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

    Cheers!
    Elliott

    #387473

    Thanks Elliott but I need it on the LEFT ;)

    #388145

    Hey!

    Can you please provide a screenshot? I’m not sure if I understand “left hand menu on product page”.

    Regards,
    Ismael

    #388155
    This reply has been marked as private.
    #388966

    Hi!

    Looks like you edited the single product page before t show the sidebar on the right so you need to replace the code with 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);
    function avia_add_image_div()
    {
    	echo "<div class='single-product-main-image alpha'>";
    }
     
    function avia_close_image_div()
    {
    	global $avia_config;
    	$avia_config['currently_viewing'] = "shop_single";
     
    	echo "</div>";
    }
     
     
    #
    # wrap single product summary in an extra div
    #
    add_action( 'woocommerce_before_single_product_summary', 'avia_add_summary_div', 25);
    
    add_action( 'woocommerce_after_single_product_summary',  'avia_close_summary_div', 3);
    function avia_add_summary_div()
    {
    	echo "<div class='single-product-summary'>";
    }
     
     
     
    function avia_close_summary_div()
    {
    	echo "</div>"; //close out the summary
    	get_sidebar();
    }
    
    add_filter('avia_layout_filter', 'avia_change_post_layout', 10, 2);
    function avia_change_post_layout($layout, $post_id){
    	if(is_product()) {
        $layout['current']['main'] = "sidebar_left";
    	}
     
        return $layout;
    }

    Replace the code on Quick CSS with this:

    .single-product .product {
    width: 68%;
    margin-left: 4%;
    clear: none;
    float: right;
    }

    Cheers!
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.