- This topic has 5 replies, 2 voices, and was last updated 5 months, 3 weeks ago by
Tom.
-
AuthorPosts
-
October 3, 2022 at 7:28 pm #2362135
Casey
We have a use case, where the Navigation and header customizers, just wont cut it for what we need.
We are going to install our own nav and header into the Child Theme…however, we are having a bit of trouble removing the options for :
Layout >
– Header
– Primary Navigation
– Secondary Navigation
– Sticky Navigation
– Off Canvas PanelWe are replacing all of this. Everything else can stay.
We have tried to remove just those 5 via Functions – remove_action()
October 4, 2022 at 7:29 pm #2363469Tom
Lead DeveloperLead DeveloperHi there,
You should find all the sections here: https://gist.github.com/generatepress/f04d0881f806e84be0ac
Let me know if it’s missing any π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 5, 2022 at 8:51 am #2364296Casey
i loaded this into the child – but, i must be missing something, since, its not working.
October 5, 2022 at 10:33 am #2364403Tom
Lead DeveloperLead DeveloperI’ve just updated the code I shared – can you try now?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 5, 2022 at 11:28 am #2364463Casey
These worked.
// Remove default sections
$wp_customize->remove_section(‘generate_colors_section’); /* Works */
$wp_customize->remove_section(‘generate_typography_section’); /* Works */
$wp_customize->remove_panel(‘generate_layout_panel’); /* Works */
// Remove Generate Blog sections
$wp_customize->remove_section(‘generate_blog_section’); /* Works */Still Visible : Based on the code :
// Remove Menu Plus section. – Visible as ” Menu Plus ”
$wp_customize->remove_panel(‘generate_menu_plus’);// Remove Generate Backgrounds section – Visible as ” Background Images” ( not sure if im correct here )
$wp_customize->remove_panel(‘generate_backgrounds_panel’);Its getting better for sure.
Layout > – gone
β Header – gone
β Primary Navigation – gone
β Secondary Navigation – Visible
β Sticky Navigation – Visible
β Off Canvas Panel – VisibleOctober 5, 2022 at 8:10 pm #2364720Tom
Lead DeveloperLead DeveloperCode updated again – should be good to go.
Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.