Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1022255

    Hey guys!

    I have a problem with the side bar. I want to display shop categories only on single product pages. Normally I used the following method: appearance – widgets – single product pages – product categories. And when creating the product, I also clicked on sidebar – shop overview page. But now it doesn’t work. http://kinezioplus.by/product/spiral-tmax

    Please help me figure out what the problem is.

    #1022308

    Sorry, not the right password. This is the right one:

    #1022637

    Can anyone help me with my problem? It’s pretty urgent

    #1022812

    Hi goloburda,

    Yes it won’t work since you put it on Single Product Pages widget area in Widgets but on the product page you set sidebar to Shop Overview Page, just switch Shop Overview Page to Single Product Pages and it should work.

    Best regards,
    Nikko

    #1022948

    Thank you very much for your help. Now it works.

    I have one more question. Now my categories are at the bottom of the page, it is possible to move it to the beginning? Please take a look at the screenshot I attached. https://drive.google.com/file/d/1iPmIxZCphqUwKvp_lhHEZybt8EyBTopQ/view?usp=sharing

    And I also want to move “all products” to the top of the category list, now it’s in the middle. It’s not logical

    Thank you in advance.

    Best,
    Olga

    #1023189

    Hi Olga,

    Glad to hear that.
    Try adding this php code at the bottom of your functions.php:

    remove_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2);
    remove_action( 'woocommerce_before_single_product_summary',  'avia_close_image_div', 20);
    
    add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div2', 2);
    add_action( 'woocommerce_before_single_product_summary',  'avia_close_image_div2', 20);
    
    if(!function_exists('avia_add_image_div2'))
    {
    	function avia_add_image_div2()
    	{
    		$nolightbox = '';
    		$icon = '';
    		
    		if( avia_woocommerce_version_check( '3.0.0' ) )
    		{
    			if( current_theme_supports( 'wc-product-gallery-lightbox' ) )
    			{
    				$nolightbox = 'noLightbox';
    			}
    			else if( current_theme_supports( 'avia-wc-30-product-gallery-feature' ) )
    			{
    				$nolightbox = 'noHover';
    				$icon = '<div class="avia-wc-30-product-gallery-lightbox" '.av_icon_string('search').' ></div>';
    			}
    		}
    
    		get_sidebar();
    		echo '<div class="' . $nolightbox . ' single-product-main-image alpha">' . $icon;
    	}
    }
    
    
    
    if(!function_exists('avia_close_image_div2'))
    {
    	function avia_close_image_div2()
    	{
    		global $avia_config;
    		if(is_product()) {
    		$avia_config['currently_viewing'] = "shop_single";
    		}
    		echo "</div>";
    	}
    }

    then inside the WP Dashboard, go to Enfold > General Styling > Quick CSS and add this code:

    #top.single-product #main .sidebar {
        border: none;
    }
    
    #top.single-product #main .sidebar .inner_sidebar.extralight-border {
        margin-left: 0;
    }

    Hope this helps.

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.