Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #305396

    Hello ,
    is it possible to get 1/2 + 1/2 product single page layout ? I wanna make product gallery more bigger .

    thank you

    #305573

    Hi Denis!

    Thank you for using the Enfold theme.

    Please add this on functions.php to change the layout of the single product page:

    add_action( 'init', 'half_single_product_page', 1);
    
    function half_single_product_page() {
    
    remove_action( 'woocommerce_before_single_product_summary', 'avia_add_summary_div', 25);
    add_action( 'woocommerce_before_single_product_summary', 'avia_add_summary_div_six', 25);
    
    if(!function_exists('avia_add_summary_div_six'))
    {
    	function avia_add_summary_div_six()
    	{
    		echo "<div class='six units single-product-summary'>";
    	}
    }
    
    remove_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2);
    add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div_six', 2);
    if(!function_exists('avia_add_image_div_six'))
    {
    	function avia_add_image_div_six()
    	{
    		echo "<div class='six units single-product-main-image alpha'>";
    	}
    }
    }

    Cheers!
    Ismael

    #305579

    Thank you so much, Ismael !

    #305603

    Hey!

    Glad we could help you.

    Enjoy the theme.

    Best regards,
    Günter

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