-
AuthorPosts
-
December 10, 2019 at 11:13 pm #1164661
Hi,
Does anyone know how to keep the sidebar as it is when a category is clicked?
https://www.gregorybeylerian.com/shop/As it is now , a whole bunch of category and archived links pop up in the sidebar.
Any assistance on resolving this would be really appreciated!
GB
December 11, 2019 at 6:54 am #1164719Hi GB,
Yes, if I’m not mistaken your shop sidebar is fetching from Shop Overview Pages (in Appearance > Widgets).
So just put the same widgets under Single Product Pages (widget area).
Hope this helps.Best regards,
NikkoDecember 12, 2019 at 1:23 am #1165028Ahhh, thanks so much Nikko.
I got it to work for The Shop Overview Pages. However it seems I could not get it to work for each single product page as I got a notice that says the sidebar could only be utilized if I activate the Advanced Layout Editor. But if I do that WooCommerce says it will not work well and it did not when I tried activating.So I am fine not to have a side bar on single product pages unless you have idea around that?
THANKS!
GB
December 12, 2019 at 6:21 pm #1165273Hi GB,
If you’re using Advanced Layout Editor, you’ll need to use Widget Area element.
If you’re using Default Editor, you ca go to (in the product page backend) Layout > Sidebar Setting > Shop Overview Page.
Let us know if this helps.Best regards,
NikkoDecember 13, 2019 at 8:22 pm #1165633Hi Nikko,
I am using the default Editor and so when I do as you say and go to ” (in the product page backend) Layout > Sidebar Setting > Shop Overview Page.”
It puts the sidebar under the product. Here is a link to one product page showing this issue:
Any ideas?
December 16, 2019 at 2:17 am #1166214Hi,
Sorry for the late reply, we do have some code that will allow you to have a right sidebar on a single product page, but it works best if your page is full width.
If you would like to try it out, Please add this code in the General Styling > Quick CSS field:/*add right sidebar to woo product page*/ .single-product-main-image { width: 25%; } .single-product-summary { overflow: hidden; width: 40%; float: left; margin-right: 5%; } .single-product .sidebar { width: 35%; }
Then add this code to the end of your functions.php file in Appearance > Editor:
add_action('init','ava534345953_init', 50); function ava534345953_init() { add_action( 'woocommerce_after_single_product_summary', 'avia_add_sidebar', 25); } function avia_close_image_div() { global $avia_config; echo "</div> "; } function avia_add_sidebar() { if(is_product()) { $avia_config['currently_viewing'] = "shop_single"; get_sidebar(); } }
Best regards,
MikeDecember 16, 2019 at 3:28 am #1166219Hey Thanks Mike,
Ill keep it full page then,
All the best and happy holidays!
GB
December 16, 2019 at 10:32 am #1166286Hi,
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 -
AuthorPosts
- The topic ‘My shop sidebar changes when a category is clicked?’ is closed to new replies.