• neykam

    (@leonitmt)


    Hello, how to disable this in theme <div id=”primary-menu” class=”main-nav”> to remove it in theme with all this <ul class=”menu sf-menu”>

    • This topic was modified 4 months ago by neykam.
Viewing 15 replies - 1 through 15 (of 19 total)
  • David

    (@diggeddy)

    Hi there,

    are you wanting to remove the entire Primary Navigation from the site ?

    Thread Starter neykam

    (@leonitmt)

    yes but the two that I sent the primary-menu and the menu sf-menu, I will remove

    • This reply was modified 4 months ago by neykam.
    • This reply was modified 4 months ago by neykam.
    Leo

    (@leohsiang)

    To remove the primary navigation, select No Navigation in Customizer > Layout > Primary Navigation: https://docs.generatepress.com/article/navigation-location/

    Thread Starter neykam

    (@leonitmt)

    Hello, can i remove only the ones I mentioned, not all of them, no navigation, but only those two

    Leo

    (@leohsiang)

    Sorry but I’m not really sure what you are trying to achieve here.

    Can you provide more details?

    Thread Starter neykam

    (@leonitmt)

    but these two that I have sent to remove <div id=”primary-menu” class=”main-nav”> and the <ul class=”menu sf-menu”>

    David

    (@diggeddy)

    You can’t remove the 2 x HTML Elements you have listed. They are both required for the navigation and menu to work .

    Thread Starter neykam

    (@leonitmt)

    I can’t remove this main-nav menu with all the sf-menu without making it no navigation?

    Leo

    (@leohsiang)

    That is correct.

    Thread Starter neykam

    (@leonitmt)

    Okay, how to enable this nav-search-enabled , can php code be used to enable it

    Leo

    (@leohsiang)

    The Navigation Search feature can be disabled in the customizer as well: https://docs.generatepress.com/article/navigation-search/

    Thread Starter neykam

    (@leonitmt)

    How to activate, I’m talking about nav-search-enabled

    Leo

    (@leohsiang)

    I’m not sure what you are asking here.

    The search option can be activated or deactivated in the customizer under Layout > Primary Navigation.

    Thread Starter neykam

    (@leonitmt)

    Yes I know this but it is not showing that it is nav-search-enabled

    ying

    (@yingscarlett)

    This class is only added if the legacy navigation search is enabled. However, it was a legacy feature, GP uses the new navigation search modal now.

Viewing 15 replies - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.