- This topic has 5 replies, 2 voices, and was last updated 3 years, 2 months ago by
Ying.
-
AuthorPosts
-
February 17, 2023 at 10:25 am #2537155
Kip
Hi,
I’m currently using Customizer to place our Primary Navigation in the “Below Header” position. However due to some advertising constraints (they want a 100px max height for the nav), and my desire to use Secondary Navigation as well for a “trending” menu, either right above or right below the primary nav, I’d like to place the navigations say above the main content, so within the content container but in the same place visually. I found this ticket https://generatepress.com/forums/topic/boxed-logo-item-in-combination-with-secondary-nav/, but not sure if I can use “above-main-content” or whatever to re-place the navs.
Obviously I could just use some php with wp_nav_menu to place any menu anywhere, but this does not afaik then work with the Customizer, and I’d like to keep the customizations all in one place if possible.February 17, 2023 at 2:08 pm #2537344Ying
StaffCustomer SupportHi Kip,
and I’d like to keep the customizations all in one place if possible
If there’s no such option for what you are trying to achieve in the customizer, PHP code will be required.
Can you show us the site so we can have a better idea of what you want?
Maybe a mockup if it’s possible.
February 17, 2023 at 2:19 pm #2537362Kip
the question boils down to this: in the Customizer (Customizer>Layout>Primary Navigation), you’re presented with a list of options for where you can place the menu:
-Below Header
-Above Header
-Float Right
-Float Left
-Left Sidebar
-Right Sidebar
-No Navigation
I’m just wondering if it’s possible to amend that list, to include (for example: generate_before_main_content). If not, it’s not that big a deal, I can just create the menus the old fashioned way and place them with php:
wp_nav_menu( array( ‘theme_location’ => ‘custom-menu’ ) );February 17, 2023 at 2:36 pm #2537376Ying
StaffCustomer SupportI’m just wondering if it’s possible to amend that list, to include
No, unfortunately, it’s not possible and it’s very complicated to modify the interface of the customizer.
February 17, 2023 at 2:48 pm #2537386Kip
Appreciate the response, you can close the ticket 🙂
February 17, 2023 at 2:53 pm #2537390Ying
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.