- This topic has 30 replies, 8 voices, and was last updated 2 years, 2 months ago by Leo.
-
AuthorPosts
-
February 12, 2018 at 9:16 am #494546TomLead DeveloperLead Developer
I’m always happy to help when I can 🙂
Thanks again!
July 17, 2020 at 9:43 am #1366993GregIs there a way to add my own options to GP’s Layout > Sidebars area in the page editor? If there’s an action or filter, I’d like to just add a list of sidebars right there to choose from, and not have to add another plugin with it’s messy interface. 🙂
#featurerequest
July 17, 2020 at 9:54 am #1367008GregFound
generate_layout_meta_box_content
andgenerate_layout_meta_box_save
. I’ll play around with this.July 17, 2020 at 2:38 pm #1367202TomLead DeveloperLead DeveloperThat’s the best place to look, for sure.
Also, keep an eye on our upcoming version, as some things have changed in that area: https://github.com/tomusborne/generatepress/tree/release/2.5.0
February 15, 2021 at 4:58 pm #1659673Juan RamónHere’s a new and happy GP Premium user who finally got to debut a new sidebar on my chid theme just for pages thanks to this 2018 thread XD Thank you both!
JRMora / Cartoonist https://www.jrmora.com/blog
July 19, 2021 at 2:27 pm #1861679JatinI want to have a different siderbar which i can create from a page using shortcodes. However, is there any way to display it on a page. Rest of the site can follow the standard sidebar.
Its been almost 2 + years of this post. Not sure if this functionality is natively available using Hooks or something ?
July 19, 2021 at 4:16 pm #1861743LeoStaffCustomer SupportNot sure if I fully understand the requirement specifically on the shortcodes part.
This plugin is still likely your best bet:
https://en-ca.wordpress.org/plugins/content-aware-sidebars/If you need further help, please start a new topic.
Thank you!
August 30, 2021 at 4:17 am #1912525JacobHi Generatepress,
I am battling the same issue as the ones previously in this thread.
I have gone with content aware, and set up everything as it should (or so I imagine at least)
On my test page, the original sidebar is removed, and it revert to default, instead of updating with the new sidebar.
Check: https://childrenstoybox.co.uk/best-electric-scooters-in-the-uk/
Do u have an idea as to whats going wrong here?
Kind Rgards
Jacob
August 30, 2021 at 6:00 am #1912613DavidStaffCustomer SupportHi there,
can you share a screenshot of the Content Aware settings?
August 30, 2021 at 1:58 pm #1913218JacobHI David,
Sure, here are the screenshots
Conditions: https://prnt.sc/1qtwet3
Action: https://prnt.sc/1qtwh2v
Design: https://prnt.sc/1qtwiw1
Schedule: https://prnt.sc/1qtwkze
Options: https://prnt.sc/1qtwmktThis is how the setting looks right now. Hope u can help me.
Thanks
Jacob
September 1, 2021 at 2:36 am #1915065JacobHI David,
Did u have an idea, as to what’s causing the plugin not to work?
Kind Regards
Jacob
September 1, 2021 at 4:23 am #1915163DavidStaffCustomer SupportHave you tested it with the cache plugin disabled ?
September 2, 2021 at 4:52 am #1916400JacobProblem solved. The actual widget was not updated correctly.
Thanks
Jacob
September 2, 2021 at 7:19 am #1916534DavidStaffCustomer SupportGlad to hear you found the answer!!!
February 6, 2022 at 11:43 am #2107394BurkeWhat I did was
1. duplicate /inc/general.php into my child theme
2. In that file, after'sidebar-1' => __( 'Right Sidebar', 'generatepress' ), 'sidebar-2' => __( 'Left Sidebar', 'generatepress' ),
I added:
'sidebar-3' => __( 'Right Special Sidebar', 'generatepress' ),
3. duplicate /sidebar.php into my child theme
4. Add:if ( is_page() ) { if ( ! dynamic_sidebar( 'sidebar-3' ) ) { generate_do_default_sidebar_widgets( 'right-special-sidebar' ); } } else { if ( ! dynamic_sidebar( 'sidebar-1' ) ) { generate_do_default_sidebar_widgets( 'right-sidebar' ); } }
-
AuthorPosts
- The topic ‘Different sidebars for posts and pages’ is closed to new replies.