Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1177364

    Hi
    I am having problems with the positioning of the WooCommerce categories widget on individual product pages
    here is what I am seeing
    https://aussiehiddentreasures.com/wp-content/uploads/2020/01/Screen-Shot-2020-01-23-at-12.22.09-pm.jpg
    I have used the code from a previous support ticket
    https://kriesi.at/support/topic/woocommerce-menu-position-problem/
    it worked the last time but this time it is not – I would like the Categories menu to be at the right of the other info
    any suggestions

    here is the code I am using form the previous post

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

    Hey smarta-brett,
    Sorry for the late reply, and thanks for the screenshot, but we are unable to view the page in question to test without a login, please include an admin login.
    Did you also add the css from the solution post?

    .single-product-main-image {
        width: 25%;
    }
    
    .single-product-summary {
        overflow: hidden;
        width: 45%;
        float: left;
        margin-right: 5%;
    }
    
    .single-product .sidebar {
        width: 25%;
    }

    If you didn’t that could be why it’s not working for you, or perhaps try clearing your browser cache.

    Best regards,
    Mike

    #1178418

    thanks Mike

    that did the trick !

    #1178486

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘woocommerce menu’ is closed to new replies.