Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #524808

    I need to setup width page without sidebar below.. it is possible?
    http://www.illillo.it/prodotto/fornetto-pizza-illillo/

    #525304

    Hi unicaweb,

    Not sure I understand what you mean by that, could you explain a bit further or post a screenshot of what you would like to hide please? Do you want to hide it on the page you linked only?

    Regards,
    Rikard

    #525362

    I need to setup a single shop page with right sidebar, now (cart) is under product image (http://www.illillo.it/test.pdf)
    So…how can modify Title and Descriprion for shop page http://www.illillo.it/shop/ ? I see “Archivio prodotti” but Yoast don’t work on this page.

    #526554

    Hi!

    Thank you for the update.

    Please add this in the functions.php file:

    #
    # wrap single product image in an extra div
    #
    
    function avia_add_image_div() {
     echo "<div class='single-product-main-image alpha'>";
    }
    
    function avia_close_image_div() {
     echo "</div>";
    }
    
    #
    # wrap single product summary in an extra div
    #
    
    function avia_add_summary_div() {
     echo "<div class='single-product-summary'>";
    }
    
    function avia_close_summary_div() {
            global $avia_config;
            echo "</div>"; //close out the summary	
            $avia_config['currently_viewing'] = "shop_single";
    	get_sidebar();	
    }
    
    function avf_product_sidebar_layout_mod($layout){
     if( is_single() )$layout = "sidebar_left";
     return $layout;
    }
    
    add_action('init', 'ava_product_sidebar_mod');
    function ava_product_sidebar_mod() {
     add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2 );
     add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20 );
     add_action( 'woocommerce_before_single_product_summary', 'avia_add_summary_div', 25 );
     add_action( 'woocommerce_after_single_product_summary', 'avia_close_summary_div', 3 );
     add_filter( 'avf_product_sidebar_layout', 'avf_product_sidebar_layout_mod', 5);
    }

    Edit config-woocommerce > config.php file, look for this code:

    $sidebar_setting = avia_layout_class( 'main' , false );
    

    Replace it with:

    $sidebar_setting = apply_filters( 'avf_product_sidebar_layout', avia_layout_class( 'main' , false ) );
    

    Add this to the Quick CSS field:

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

    Cheers!
    Ismael

    #526810
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Layout shop page & single product’ is closed to new replies.