-
AuthorPosts
-
February 6, 2016 at 6:12 pm #579032
Hallo
wir benötigen auf der Produkt Singel Page eine Sidebar rechts um Widget zuschalten.
Ist das Möglich , wenn ja wie ?
Für Ihre Hilfestellung vielen Dank.
Gruß
JessicaPS: Kunde hat es gesehen bei einen anderen Theme – Link anbei
February 9, 2016 at 9:18 am #580220Hey MEXX!
Thank you for using Enfold.
Do you want to move the product widget area in the right sidebar? Please add this in the functions.php file:
add_action('init','ava_product_sidebar_init_mod', 50); function ava_product_sidebar_init_mod() { remove_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20); add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div_mod', 20); add_action( 'woocommerce_after_single_product_summary', 'avia_add_sidebar_mod', 19); } function avia_close_image_div_mod() { echo "</div>"; } function avia_add_sidebar_mod() { global $product, $avia_config; if( is_product() ) { $avia_config['currently_viewing'] = "shop_single"; get_sidebar(); } }
And this css code in the Quick CSS field:
.single-product-main-image { width: 25%; } .single-product-summary { overflow: hidden; width: 45%; float: left; margin-right: 5%; } .single-product .sidebar { width: 25%; }
Adjust the width values as needed.
Cheers!
IsmaelFebruary 9, 2016 at 11:55 am #580310Good morning Ismael.
This code, unfortunately caused a serious mistake.
Can you please check this.
Thank you very much.
greeting
Jessica
February 10, 2016 at 5:39 am #580794Hi!
Please copy the code directly from the forum, not from your email. :)
Regards,
IsmaelFebruary 10, 2016 at 9:51 am #580911Good morning Ismael
I have the code copied from the Forum, as well as yesterday and get an error message. See Appendix.
(I have copied in the functions.php the code.)
What can we do?
Thank you.
greeting
JessicaFebruary 14, 2016 at 9:42 am #582896Hi!
I tested the same code on my installation and it works fine. I’m sorry but what is the url to the site?UPDATE: Nevermind, I found it.
Cheers!
IsmaelFebruary 14, 2016 at 9:46 am #582897Hi!
We added the modifications and it didn’t cause an error. Please check the single product pages:
http://mexx.paris/?product=fraesgeraet-mit-absaugsystem-max-50-000-umin
http://mexx.paris/?product=sweety-tips-500er-sortimentBest regards,
IsmaelFebruary 14, 2016 at 12:18 pm #582916Good morning Ismael.
Thank you very much works fantastic.
I probably did something during copying.
Best regards
JessicaFebruary 14, 2016 at 12:31 pm #582918 -
AuthorPosts
- The topic ‘Sidebar rechts Single Page’ is closed to new replies.