Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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ß
    Jessica

    PS: Kunde hat es gesehen bei einen anderen Theme – Link anbei

    #580220

    Hey 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!
    Ismael

    #580310

    Good morning Ismael.

    This code, unfortunately caused a serious mistake.

    Can you please check this.

    Thank you very much.

    greeting

    Jessica

    #580794

    Hi!

    Please copy the code directly from the forum, not from your email. :)

    Regards,
    Ismael

    #580911

    Good 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
    Jessica

    #582896

    Hi!

    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!
    Ismael

    #582897

    Hi!

    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-sortiment

    Best regards,
    Ismael

    #582916

    Good morning Ismael.

    Thank you very much works fantastic.

    I probably did something during copying.

    Best regards
    Jessica

    #582918

    Hi!

    Sure thing. Let us know if you need anything else. :)

    Cheers!
    Ismael

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Sidebar rechts Single Page’ is closed to new replies.