This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Search box function

  • Creator
    Topic
  • #308
    alexjwing
    Member

    Is there a piece of code that will add a nice simple search box functionality to the end of the menu?

     

    Cheers

    Alex

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #310
    Jason Bobich
    Keymaster

    There’s not going to be any way to insert and be done with it, but possibly you could try just hooking WordPress’s search function to the theme’s action present there to get you started. This would go in your Child theme’s functions.php, for example.

    add_action( 'themeblvd_header_menu_addon', 'get_search_form' );

    Resource: http://dev.themeblvd.com/tutorial/primary-framework-action-hooks/

    From there, you’d need to make CSS customizations I’m sure to get it looking and placed exactly where you want. —

    For CSS changes, it’s a good idea to use a tool like firebug or Google Chrome’s built-in developer tools to locate them and then put the edits either in your child theme or in the “Custom CSS” option on your theme options page.

    Also, here’s a helpful tutorial on how to use Firebug – http://vimeo.com/20917974. The only thing I’d suggest not doing is actually making edits to the theme’s CSS files, as it shows at the end of that video. However, the video serves as a good introduction to Firebug and how it can be used to find what CSS is effecting certain areas of your site without ever digging around in any files.

Viewing 1 replies (of 1 total)
  • The forum ‘Swagger Responsive WordPress Theme’ is closed to new topics and replies.