{"id":6837,"date":"2019-02-21T14:02:51","date_gmt":"2019-02-21T14:02:51","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=6837"},"modified":"2023-04-15T11:04:18","modified_gmt":"2023-04-15T11:04:18","slug":"how-to-add-a-search-field-to-the-header","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/","title":{"rendered":"How to Add a Search Widget to the Header"},"content":{"rendered":"\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>The <a href=\"https:\/\/crocoblock.com\/widgets\/search\/\" target=\"_blank\" rel=\"noopener noreferrer\">Search<\/a> widget is a control element used in computer programs and on websites. It is used to help the user to search and retrieve information from the database.<\/p>\n\n\n\n<p>This guide will teach you how to add a <strong>Search<\/strong> widget using the <a href=\"https:\/\/crocoblock.com\/plugins\/jetblocks\/\" target=\"_blank\" rel=\"noopener noreferrer\"><em>JetBlocks<\/em><\/a> plugin for <strong>Elementor<\/strong>. So let\u2019s walk through this process.<\/p>\n\n\n\n<p>Log in to your <strong>WordPress Dashboard<\/strong>.<\/p>\n\n\n\n<p>Navigate to the <em><strong>Crocoblock<\/strong> &gt; <strong>My Library<\/strong><\/em> section, hover over the <strong>Header<\/strong> field, and click the <strong>Edit with Elementor<\/strong> option to proceed.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/Header-in-the-Crocoblock-library.png\" alt=\"Crocoblock library\">\n\n\n<div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">If you want to change your header template, you can click the <strong>Magic Button<\/strong> in <strong>Elementor<\/strong> to open the templates library. Then, click the <strong>Headers<\/strong> tab, choose the header built the way you like and then click <strong>Insert<\/strong>.<\/p><\/div><\/div>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/headers_library.png\" alt=\"headers in library\">\n\n\n\n<p>After this, find the <strong>Search<\/strong> widget in the widgets panel and drag it to the section, where you want to locate your search form.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/search-widget-1.png\" alt=\"search-widget\">\n\n\n\n<p>After that, you\u2019ll see the search field in your header template. On the left sidebar, you can change the <strong>General Settings<\/strong> of the widget.<\/p>\n\n\n\n<ul>\n<li>You can specify the search placeholder, enable showing the &#8220;<strong>Submit&#8221;<\/strong> button and set its label and icon.<\/li>\n<\/ul>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/search-settings.png\" alt=\"search settings\">\n\n\n\n<ul>\n<li>Moreover, it is possible to show a search bar in the popup form. You need to turn on the <strong>Show Search Form in Popup<\/strong> option and select appropriate <strong>popup trigger icon<\/strong> and <strong>popup Close button icon<\/strong>. Also, you can make the popup <strong>fullwidth<\/strong> and choose a certain <strong>animation effect<\/strong> for showing the popup.<\/li>\n<\/ul>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/search-popup-settings.png\" alt=\"search popup settings\">\n\n\n\n<ul>\n<li>Besides, you can set the search by products, just enable the <strong>Is Product Search<\/strong> option in the settings, in case you use the <strong>Search<\/strong> widget on the <strong>Shop<\/strong> page.<\/li>\n<\/ul>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/product-search-setting.png\" alt=\"product search setting\">\n\n\n\n<p>You can also set <strong>Style<\/strong> settings of your search field.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/style-settings-of-the-search-widget.png\" alt=\"style settings of the search widget\">\n\n\n\n<p> Afterward, click the <strong> Publish<\/strong> button, and view how your header with search field looks like.<\/p>\n<\/div><\/div>\n\n\n\n<p>So, these seven easy steps are all you need to do using <strong>JetBlocks Search<\/strong> widget. Enjoy the results!<br>You can display <strong>search results<\/strong> in an <strong>archive<\/strong> template. Learn more how to do that from this <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/how-to-create-an-archive-template-to-display-the-search-results\/\" target=\"_blank\" rel=\"noopener noreferrer\">tutorial<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial explains what steps you have to take in order to add a Seach field to the header template with the help of the JetBlocks plugin.<\/p>\n","protected":false},"author":11,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[469],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add a Search Widget to the Header | Crocoblock<\/title>\n<meta name=\"description\" content=\"Follow the steps to add a Seach field to the header template with the help of JetBlocks plugin. Provide your visitors with great search opportunity!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add a Search Widget to the Header | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Follow the steps to add a Seach field to the header template with the help of JetBlocks plugin. Provide your visitors with great search opportunity!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-15T11:04:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/Header-in-the-Crocoblock-library.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/\",\"name\":\"How to Add a Search Widget to the Header | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2019-02-21T14:02:51+00:00\",\"dateModified\":\"2023-04-15T11:04:18+00:00\",\"description\":\"Follow the steps to add a Seach field to the header template with the help of JetBlocks plugin. Provide your visitors with great search opportunity!\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Add a Search Widget to the Header\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add a Search Widget to the Header | Crocoblock","description":"Follow the steps to add a Seach field to the header template with the help of JetBlocks plugin. Provide your visitors with great search opportunity!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/","og_locale":"en_US","og_type":"article","og_title":"How to Add a Search Widget to the Header | Crocoblock","og_description":"Follow the steps to add a Seach field to the header template with the help of JetBlocks plugin. Provide your visitors with great search opportunity!","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/","og_site_name":"Help Center","article_modified_time":"2023-04-15T11:04:18+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/Header-in-the-Crocoblock-library.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/","name":"How to Add a Search Widget to the Header | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2019-02-21T14:02:51+00:00","dateModified":"2023-04-15T11:04:18+00:00","description":"Follow the steps to add a Seach field to the header template with the help of JetBlocks plugin. Provide your visitors with great search opportunity!","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetblocks\/how-to-add-a-search-field-to-the-header\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/crocoblock.com\/knowledge-base\/articles\/"},{"@type":"ListItem","position":3,"name":"How to Add a Search Widget to the Header"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article\/6837"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/11"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=6837"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=6837"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=6837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}