• Could anyone give me some guidance on how to set up a search field in the primary top menu using PHP code in the Dyad theme?

    I’ve read on other forums that it’s not possible to do this within the theme itself, but it might be possible to do it by modifying the site’s PHP code.

    I realize that I could switch to a different theme that supports this field already. However, my bosses really like this theme and would highly prefer to stay with it–they just want to add a search field at the top.

    FYI: I’m posting this on www.ads-software.com because the website I’m working on is hosted on a private stage site at my university. Since I can’t link the site to this post, I’ve linked the wordpress.com version, which is almost identical to the stage site.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Several ways you could do this:
    – Create a child theme and modify the PHP code that handles the top menu, probably a file like “header.php”, this will depend upon your theme.
    – Inject your piece of HTML that does the search into the menu output by using a filter on the menu code generation, again theme dependent.

    Either way you will need to read and experiment with your theme files, using a child theme is very highly recommended.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP for Search in Primary Top Menu’ is closed to new replies.