Shop Categories

X

How to customize appearance of menus whilst retaining header style?

Home Forums Agama Pro How to customize appearance of menus whilst retaining header style?

Topic Resolution: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5374
    Wilfred
    Participant

    Hello,

    I am developing a child theme of Agama Pro, and am currently running the following theme specifications:

    The top menu is being displayed but the primary menu is not.
    I am running the Header V3 header style

    I would like to modify the code such that I can retain the Header V3 style whilst eliminating the primary menu from ever being displayed (in fact, I would like to remove it from the loop entirely).

    As an aside, I am wondering how dependent the child theme’s appearance is on Agama Pro’s version. It appears that the child theme inherits a lot of extra php functionality from the parent theme, and my concern here is that, given such dependencies, and given that the child theme does not have its own versions of these extra php files, updating Agama Pro will inadvertently modify the appearance of the Child theme…

    The possible solution I can think of is the obvious solution: Create copies of these files and move them to the child theme folder. My concern with simply doing this is that, at some point, the code may prove to be obsolete, especially in the event that PHP conventions or security risks end up changing. So, I am hesitant to do this as well.

    I am new to WordPress development, so I do not possess the know-how to adequately take preventative measures against this issue.

    I would be grateful for any advice regarding the above-listed concerns.

    • This topic was modified 6 years, 4 months ago by Wilfred. Reason: mismatched which menu was being displayed and which I want to remove
    #5382
    Zex
    Moderator

    Hello Wilfred!

    We apologize for the delay.

    Perhaps this article will help you with questions about the child Theme.
    https://codex.wordpress.org/Child_Themes

    If you want to remove the primary menu, from headerV3 style you do not need to modify the theme code.

    You can just follow the steps below to do that:

    Create a new blank menu and set it as a primary.

    1. Go to: Apperance-> Menus
    2. Create a new EMPTY menu. (Without menu items)
    3. Set the empty menu as primary.
    4. Save menu.
    http://prntscr.com/frdebv
    5. Go to: Apperance-> Customize-> Header-> Header General
    And disable the search button.
    http://prntscr.com/frdgcu

    Please let us know if this steps have helped you.

    Greetings

    #5386
    Jerry
    Keymaster

    Hello Wilfred,

    Why you do not switch to header V2 and disable header transparency ? Since header V2 is same like V3 just without top navigation bar.

    Check screen:
    http://prntscr.com/frisz8

    I hope we will soon prepare a documentation for child theme with proper hook/unhook descriptions so you will be able to see how/what you can add/remove via add_action/remove_action or add_filter/remove_filter hooks.

    Until that you will need to improvise with your child theme customization 🙂

    Best Regards

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.