Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #940155

    at this site
    http://greenlifestructures.com
    which is not live yet – guest access password = greenhouse1

    this page http://greenlifestructures.com/shop/ along with most of the others has the secondary Enfold menu on the right
    however – once in the products pages eg http://greenlifestructures.com/product/black-pipe-clips/ the secondary menu appears at the bottom left of the page

    is there some CSS or something that would fix this?

    #940382

    Hey smarta-brett,

    The use of color section always pushes the sidebar below. You might want to use a 1/1 or some other element instead.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #940736

    Hi Victoria

    I’m sorry – don’t understand what you mean by “The use of color section”

    the default shop page displays with the menu to the right on the first two pages that show categories – but as soon as you visit the product page itself the menu moves to the left

    I set up a test page called Shop 2 – using a 1/1 with a products grid and the same thing happens

    #941298

    Hi smarta-bret,

    Please refer to this link for a possible solution.

    https://kriesi.at/support/topic/sidebar-rechts-single-page/#post-580220

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #941773

    ok – i tried that but when I try to edit the functions-enfold.php file by adding the code shown at the bottom of the file it will not save and shows the error

    Your PHP code changes were rolled back due to an error on line 1908 of file wp-content/themes/enfold/functions-enfold.php. Please fix and try saving again.

    Cannot redeclare avia_close_image_div() (previously declared in wp-content/themes/enfold/config-woocommerce/config.php:1234)

    #941776

    also – please note that this menu is not woo-commerce generated

    it is created in Appearance/Menu and is called “Sider Products Links”

    #942483

    Hi,

    Thank you for the update.

    You need to put the code in the functions.php, not the functions-enfold.php file. Adjust the code a bit.

    
    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();
    	}
    }

    Use the same css codes.

    Best regards,
    Ismael

    #942816

    brilliant – thank you

    #943004

    Hi,

    Great, glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #943015

    yes, thanks again, close it please

    #943385

    Hi,

    Great, please open a new thread if you should have any further problems or questions for us.

    Best regards,
    Rikard

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘wooCommerce menu position problem’ is closed to new replies.