-
AuthorPosts
-
October 16, 2018 at 4:39 pm #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.
October 16, 2018 at 6:31 pm #1022308Sorry, not the right password. This is the right one:
October 17, 2018 at 9:11 am #1022637Can anyone help me with my problem? It’s pretty urgent
October 17, 2018 at 3:43 pm #1022812Hi 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,
NikkoOctober 17, 2018 at 6:11 pm #1022948Thank 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,
OlgaOctober 18, 2018 at 8:34 am #1023189Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.