-
AuthorPosts
-
October 26, 2015 at 12:02 pm #524808
I need to setup width page without sidebar below.. it is possible?
http://www.illillo.it/prodotto/fornetto-pizza-illillo/October 27, 2015 at 5:02 am #525304Hi 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,
RikardOctober 27, 2015 at 9:16 am #525362I 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.October 29, 2015 at 7:25 am #526554Hi!
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!
IsmaelOctober 29, 2015 at 3:02 pm #526810Thank! Now its work better!
-
AuthorPosts
- The topic ‘Layout shop page & single product’ is closed to new replies.