- This topic has 9 replies, 4 voices, and was last updated 3 years, 1 month ago by
David.
-
AuthorPosts
-
January 27, 2023 at 12:54 am #2510731
Robert
Hi
I just wanna ask how to add a side bar with the MENU, on the left into the SHOP page?
I made it but there is no efekt:
https://snipboard.io/x4obVY.jpghttps://snipboard.io/Ccp1iD.jpg
Kr
R.January 27, 2023 at 1:11 am #2510749Fernando Customer Support
Hi Robert,
What you can do is enable the Sidebar through Appearance > Customize > Layout > WooCommerce > Sidebar Layout. Reference: https://docs.generatepress.com/article/woocommerce-overview/#shop
Then, create a Block Element – Sidebar, and set it to display on the
Product Archivepage. Reference: https://docs.generatepress.com/article/block-element-sidebar/Add a WP Navigation Block there. Reference: https://wordpress.com/support/site-editing/theme-blocks/navigation-block/
January 27, 2023 at 4:19 am #2510902Robert
Hi
I can see it now but I can’t make any changes for the side bar on the left
for example – the background color, font size ect.January 27, 2023 at 4:48 am #2510926Robert
I think I’m closer :))
How can i make smaller the space between the MENU ?
January 27, 2023 at 6:10 am #2510983Robert
..
January 27, 2023 at 10:45 am #2511373Ying
StaffCustomer SupportHi Roert,
Try this CSS:
.is-left-sidebar ul.wp-block-navigation__container > li >a { padding-top: 0; padding-bottom: 0; } .is-left-sidebar ul.wp-block-navigation__container { row-gap: 10px; padding-top: 10px; padding-bottom: 10px; }January 27, 2023 at 11:52 pm #2511730Robert
Hi
yep – it works 🙂
thx!Just 2 thing more:
– do I need extra CSS code to edit/change the 2 colors of my links if I move with the cursor overt it?https://snipboard.io/dqNl9m.jpg
In the ELEMENTS settings I can’t find it:
https://snipboard.io/7ylfJh.jpgThx
R.January 28, 2023 at 4:23 am #2511853David
StaffCustomer SupportHi there,
try this CSS:
/* parent menu */ .wp-block-navigation .wp-block-navigation-item:hover a { background-color: #00f; color: #000; } /* sub menu */ .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item:hover a { background-color: #0f0; color: #fff; }January 30, 2023 at 4:09 am #2513929Robert
Hi
Thx for Your code…
I wanna ask how could I change the background color of the whole links in the sub-menu
https://snipboard.io/MNvEOT.jpg ?Now it is red.
R
January 30, 2023 at 5:54 am #2514023David
StaffCustomer SupportIf you want the sub menu items to have a different normal color then add this CSS:
/* sub menu not hover */ .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a { background-color: #0f0; color: #fff; } -
AuthorPosts
- You must be logged in to reply to this topic.