Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
January 28, 2015 at 10:58 am #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.
MJanuary 28, 2015 at 11:39 pm #387472Hey 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!
ElliottJanuary 28, 2015 at 11:41 pm #387473Thanks Elliott but I need it on the LEFT ;)
January 30, 2015 at 9:00 am #388145Hey!
Can you please provide a screenshot? I’m not sure if I understand “left hand menu on product page”.
Regards,
IsmaelJanuary 30, 2015 at 9:27 am #388155This reply has been marked as private.February 1, 2015 at 8:43 am #388966Hi!
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 -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.