[Resolved] modify Top Bar with child theme

  • Author
    Posts
  • #10710

    Andrew Misplon
    Keymaster

    Hi Ostsee

    Thanks for posting 🙂

    Unfortunately, this isn’t a simple change. The header search uses JavaScript. The search is identified, in part, by the parent selector main-navigation. If you remove the search from that div, the JavaScript can’t locate the search form. The CSS targetting the search icon is also prefixed with the main-navigation class, moving the search out of that div means you’d have to add the styling to your child theme and remove the main-navigation` selector.

    Have you perhaps considered using: https://wordpress.org/plugins/bop-search-box-item-type-for-nav-menus/

    #10711

    Ostsee
    Participant

    Hi Andrew,
    thanks for your posting.

    bob-search-box is a good idea. it works with customisation.

    #10712

    Andrew Misplon
    Keymaster

    Super, glad to hear you’ve been able to make that work 🙂 Thanks for giving it a try.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Scroll to top