Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1254806
Search Form
Closed

Comments

  • akmalpunya started the conversation

    How can i make the ”search area” or ”search icon” sitting on the same level of menu (nav). for example:

    item1, item2, item3, search icon

    I want it to behave like this cart icon: http://codex-themes.com/scalia/starting_page/themes.php?page=scalia

    And also I want to do some settings on the search result page (change background image, remove sidebar). Where can i find this?

  •  7,092
    Oliver replied

    HI!

    Sorry, without code changes it's not possible, here is an example  of filter for adding any block to the menu: 

    function scalia_menu_item_search($items, $args){
        if($args->theme_location == 'primary'){
            $items .= '<li class="menu-item menu-item-search"><form role="search" id="searchform" class="sf" action="'. esc_url( home_url( '/' ) ) .'" method="GET"><input id="searchform-input" class="sf-input" type="text" placeholder="'.esc_html__('Search...', 'scalia').'" name="s"><span class="sf-submit-icon"></span><input id="searchform-submit" class="sf-submit" type="submit" value=""></form></li>';
        }
        return $items;
    }
    add_filter('wp_nav_menu_items', 'scalia_menu_item_search', 20, 2);
    

    You need to add this code to the functions php of the child theme.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver