{"id":9135,"date":"2022-06-14T08:24:58","date_gmt":"2022-06-14T08:24:58","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=9135"},"modified":"2024-07-18T13:41:53","modified_gmt":"2024-07-18T13:41:53","slug":"how-to-add-an-ajax-search-to-websites-header-with-jetsearch","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/","title":{"rendered":"How to Add an AJAX Search to a Website\u2019s Header"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"adding-the-ajax-search-to-the-header-in-elementor-editor\"><strong>Adding the AJAX Search to the Header in Elementor Editor<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Navigate to the <strong><em>WordPress Dashboard<\/em><\/strong><em> > <\/em><strong><em>Crocoblock > Theme Builder <\/em><\/strong>directory.\u00a0<\/p>\n\n\n\n<p>Select the already existing <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-create-a-custom-header-with-jetthemecore\/\" target=\"_blank\" rel=\"noreferrer noopener\">header<\/a> and click on the \u201c<strong>Edit content<\/strong>\u201d button to proceed to the editor or build a new one.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/theme-builder-directory.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/theme-builder-directory-1024x618.webp\" alt=\"theme builder directory\" class=\"wp-image-44943\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/theme-builder-directory-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/theme-builder-directory-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/theme-builder-directory-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/theme-builder-directory-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/theme-builder-directory-600x362.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/theme-builder-directory.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>In the editor, search for the <strong>Ajax Search<\/strong> widget and drag and drop it to the needed section.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-in-elementor-1024x618.webp\" alt=\"ajax search widget in elementor\" class=\"wp-image-44944\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-in-elementor-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-in-elementor-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-in-elementor-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-in-elementor-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-in-elementor-600x362.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>The <em>JetSearch<\/em><strong> <\/strong>plugin allows you to change every element of the widget; for example, you can easily <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/how-to-customize-the-placeholder-text-shown-in-the-search-field-in-jetsearch-plugin-for-elementor\/\" target=\"_blank\" rel=\"noreferrer noopener\">customize the placeholder text<\/a> and the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/how-to-customize-the-content-shown-in-the-search-results-using-jetsearch\/\" target=\"_blank\" rel=\"noreferrer noopener\">content of the search results<\/a>.<\/p>\n\n\n\n<p>Learn more about each settings tab of the widget in the corresponding tutorials:<\/p>\n\n\n\n<ul>\n<li><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/ajax-search-form-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">Search Form<\/a>;<\/li>\n\n\n\n<li><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/ajax-search-query-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">Search Query<\/a>;<\/li>\n\n\n\n<li><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/ajax-search-results-area-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">Results Area<\/a>;<\/li>\n\n\n\n<li><a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-manage-custom-fields-in-ajax-search-widget\/\" target=\"_blank\" rel=\"noreferrer noopener\">Custom Fields<\/a>;<\/li>\n\n\n\n<li><a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-show-users-search-suggestions\/\" target=\"_blank\" rel=\"noreferrer noopener\">Search Suggestions<\/a>;<\/li>\n\n\n\n<li><a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-change-the-default-notifications-in-jetsearch-shown-when-nothing-was-found\/\" target=\"_blank\" rel=\"noreferrer noopener\">Notifications<\/a>.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-search-form-settings-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-search-form-settings-in-elementor-1024x618.webp\" alt=\"ajax search widget search form settings in elementor\" class=\"wp-image-44945\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-search-form-settings-in-elementor-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-search-form-settings-in-elementor-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-search-form-settings-in-elementor-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-search-form-settings-in-elementor-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-search-form-settings-in-elementor-600x362.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-widget-search-form-settings-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Proceed to the <strong>Style<\/strong> tab and apply the needed changes to the widget\u2019s design. Once done, press the \u201c<strong>Update<\/strong>\u201d button.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"applying-the-ajax-search-in-gutenberg\"><strong>Applying the AJAX Search in Gutenberg<\/strong><\/h2>\n\n\n\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 <em>JetSearch <\/em>plugin allows applying an <strong>Ajax Search <\/strong>block using Gutenberg as well.<br><br>Edit the header built with Gutenberg. Click on the \u201c<strong>Add block<\/strong>\u201d button and find the <strong>Ajax Search<\/strong> block.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-in-gutenberg.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-in-gutenberg-1024x618.webp\" alt=\"ajax search block in gutenberg\" class=\"wp-image-44946\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-in-gutenberg-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-in-gutenberg-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-in-gutenberg-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-in-gutenberg-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-in-gutenberg-600x362.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-in-gutenberg.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Once you add the block, proceed to the <strong>Block<\/strong> tab and customize the block\u2019s elements. The settings here are the same as in the Elementor Page Builder.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-search-input-settings-in-gutenberg.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-search-input-settings-in-gutenberg-1024x618.webp\" alt=\"ajax search block search input settings in gutenberg\" class=\"wp-image-44947\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-search-input-settings-in-gutenberg-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-search-input-settings-in-gutenberg-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-search-input-settings-in-gutenberg-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-search-input-settings-in-gutenberg-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-search-input-settings-in-gutenberg-600x362.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-search-input-settings-in-gutenberg.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\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\">You can style the Ajax Search block with the help of the <a href=\"https:\/\/crocoblock.com\/plugins\/jetstylemanager\/\">JetStyleManager<\/a> plugin.<\/p><\/div><\/div>\n\n\n\n<p>Click on the \u201c<strong>Block Style<\/strong>\u201d button in the upper corner of the editing window and style the block to match your website\u2019s design.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-style-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-style-settings-1024x618.webp\" alt=\"ajax search block style settings\" class=\"wp-image-44948\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-style-settings-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-style-settings-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-style-settings-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-style-settings-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-style-settings-600x362.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-block-style-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>After completing all customizations, click the \u201c<strong>Update<\/strong>\u201d button, make sure that you have <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-set-the-header-conditions-in-jetthemecore\/\" target=\"_blank\" rel=\"noreferrer noopener\">set the header conditions<\/a>, and check the header on the front end.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-result-on-the-front-end.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-result-on-the-front-end-1024x618.webp\" alt=\"ajax search result on the front end\" class=\"wp-image-44949\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-result-on-the-front-end-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-result-on-the-front-end-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-result-on-the-front-end-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-result-on-the-front-end-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-result-on-the-front-end-600x362.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/ajax-search-result-on-the-front-end.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<p>Now you know how to add <strong>Ajax Search<\/strong> to the website\u2019s header with the help of the <em>JetSearch <\/em>plugin for WordPress.<\/p>\n","protected":false},"excerpt":{"rendered":"<p> Learn how to work with AJAX search from the JetSearch plugin and embed it in the site header. Add an AJAX search functionality to your WordPress website without using any code.<\/p>\n","protected":false},"author":11,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[428],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add AJAX Search to WordPress Site Header \u2014 JetSearch | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to work with AJAX search from the JetSearch plugin and embed it in the site header. Add an AJAX search functionality to your WordPress website without using any code.\" \/>\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\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add AJAX Search to WordPress Site Header \u2014 JetSearch | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to work with AJAX search from the JetSearch plugin and embed it in the site header. Add an AJAX search functionality to your WordPress website without using any code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-18T13:41:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/theme-builder-directory-1024x618.webp\" \/>\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\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/\",\"name\":\"How to Add AJAX Search to WordPress Site Header \u2014 JetSearch | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2022-06-14T08:24:58+00:00\",\"dateModified\":\"2024-07-18T13:41:53+00:00\",\"description\":\"Learn how to work with AJAX search from the JetSearch plugin and embed it in the site header. Add an AJAX search functionality to your WordPress website without using any code.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/#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 an AJAX Search to a Website\u2019s 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 AJAX Search to WordPress Site Header \u2014 JetSearch | Crocoblock","description":"Learn how to work with AJAX search from the JetSearch plugin and embed it in the site header. Add an AJAX search functionality to your WordPress website without using any code.","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\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/","og_locale":"en_US","og_type":"article","og_title":"How to Add AJAX Search to WordPress Site Header \u2014 JetSearch | Crocoblock","og_description":"Learn how to work with AJAX search from the JetSearch plugin and embed it in the site header. Add an AJAX search functionality to your WordPress website without using any code.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/","og_site_name":"Help Center","article_modified_time":"2024-07-18T13:41:53+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/07\/theme-builder-directory-1024x618.webp"}],"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\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/","name":"How to Add AJAX Search to WordPress Site Header \u2014 JetSearch | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2022-06-14T08:24:58+00:00","dateModified":"2024-07-18T13:41:53+00:00","description":"Learn how to work with AJAX search from the JetSearch plugin and embed it in the site header. Add an AJAX search functionality to your WordPress website without using any code.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsearch\/how-to-add-an-ajax-search-to-websites-header-with-jetsearch\/#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 an AJAX Search to a Website\u2019s 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\/9135"}],"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=9135"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=9135"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=9135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}