Archived topic
how to create a new sidebar widget
13 replies · Started by xinghui on October 11, 2022
I want to customize a new sidebar, the position of the sidebar is displayed throughout the website, I added a layout element in the edit element Elements of Generatepressd, and selected the sidebar type, I went to my widgets page to check click, it doesn't show, how to create a new sidebar widget
my image_url:https://i.postimg.cc/YSJPHCBT/sidebar-imageddd.jpg
Hi there,
is this sidebar to be seen on ALL pages on the site ?
Yeah, that's what I'm thinking, maybe there's no way to do this? Can only display a single page?
Delete the Element you created.
And simply go to Appearance > Widgets and add the widget you require to Right ( or left ) sidebar.
Thank you, I added cart page to right_bar, but why it is only displayed on blog page, I want to display it on shop page, how to do it
Hi there,
It's because the right sidebar is not activated on shop page.
You can find the setting at Customizing > Layout > WooCommerce > shop > Sidebar Layout.
ok thanks, it worked, but i found that the sidebar of my store page shows all the content of my left sidebar settings, in fact, i only want to show the 'cart' sidebar content. How to do it?
this is my problem image url:https://i.postimg.cc/HnF18Bkz/only-sidebar-ddd.jpg
Hi Xinghui,
If you want a sidebar specific with a specific layout for your Shop Page, you can use a Block Element - Sidebar.
Reference: https://docs.generatepress.com/article/block-element-sidebar/
hi,Fernando,Why is there no side-bar block element in my element, can you tell me the specific steps?
In the Element Type, choose Right Sidebar.
Sorry, Fernando,I have to ask you to help me to take a look. I did the operation directly as you said, but the side_bar doesn't seem to work. Is there anything wrong with my operation?
step:
1.Customize the layout to display the shop as content_side_bar
this is my image_url:https://i.postimg.cc/3Ndzk40j/custom-not-display.jpg
2.Add a new block element and set the rules
this is my image_url:https://i.postimg.cc/9XZnnhtQ/not-display-sidebar-on-shop-page.jpg
3.Remove the content of the widget's right_sidebar
this is my image_url:https://i.postimg.cc/MpPpn4T1/right-sidebar.jpg
4.result is not displayed
I see.
Can you provide temporary admin login credentials? I'll take a closer look.
Please use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Hello, Fernando,thank you very much for your help, I found the reason why the shop page is not displayed, it is because I used the original shop page, I deleted and recreated a page and it was displayed. Thanks again for your help
I see. Glad you resolved the issue! You're welcome Xinghui!