• Right so i’ve added a search bar to the navigation menu simply by adding <?php get_search_form(); ?> into the header file. It’s worked perfectly, however i’m having a bit of trouble styling it.

    I am wanting to move it over to the right and center it, however when I edit it using the firefox inspector tool, it seems to also move the search bar at the top of the page too.

    Any ideas what I need to do? My website is http://www.urbanfashiondaily.co.uk

Viewing 1 replies (of 1 total)
  • Try adding a location specific CSS selector so that it only affects the one in your navigation – i.e.

    .main-navigation form#searchform {
         put styles here;
    }

    Also be aware that changes you are making to theme files will be overwritten and lost when the theme is updated. Generally better to use a child theme to prevent that.

    http://codex.wordpress.org/Child_Themes

Viewing 1 replies (of 1 total)

The topic ‘Search Bar In Navigation’ is closed to new replies.