{"id":2402,"date":"2025-03-20T06:00:00","date_gmt":"2025-03-20T06:00:00","guid":{"rendered":"https:\/\/bytebrainblog.com\/index.php\/2025\/03\/20\/how-to-add-search-to-a-static-wordpress-site-for-free-using-lunr\/"},"modified":"2025-03-20T06:00:00","modified_gmt":"2025-03-20T06:00:00","slug":"how-to-add-search-to-a-static-wordpress-site-for-free-using-lunr","status":"publish","type":"post","link":"https:\/\/bytebrainblog.com\/index.php\/2025\/03\/20\/how-to-add-search-to-a-static-wordpress-site-for-free-using-lunr\/","title":{"rendered":"How to Add Search to a Static WordPress Site for Free Using Lunr"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/iotvnaw69daj.i.optimole.com\/cb:mLvy.66914\/w:150\/h:150\/q:90\/rt:fill\/g:ce\/f:best\/https:\/\/wpshout.com\/wp-content\/uploads\/2025\/03\/How-to-Add-Search-to-a-Static-WordPress-Site.png\" class=\"attachment-thumbnail size-thumbnail wp-post-image\" alt=\"How to Add Search to a Static WordPress Site\" \/>If you have a static WordPress site or you&#8217;re strongly considering launching one, then you&#8217;re probably already aware of its default limitations. One of the big ones is the inability to add a search function to your site. But with a little bit of creative thinking, you can use a free, open-source JavaScript library called Lunr (along with a few other tools) to get around that problem and build one anyway. Here&#8217;s how&#8230;<\/p>","protected":false},"excerpt":{"rendered":"<p>If you have a static WordPress site or you&#8217;re strongly considering launching one, then you&#8217;re probably already aware of its default limitations. One of the big ones is the inability to add a search function to your site. But with a little bit of creative thinking, you can use a free, open-source JavaScript library called [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2403,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2402","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/bytebrainblog.com\/index.php\/wp-json\/wp\/v2\/posts\/2402"}],"collection":[{"href":"https:\/\/bytebrainblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bytebrainblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bytebrainblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bytebrainblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=2402"}],"version-history":[{"count":0,"href":"https:\/\/bytebrainblog.com\/index.php\/wp-json\/wp\/v2\/posts\/2402\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bytebrainblog.com\/index.php\/wp-json\/wp\/v2\/media\/2403"}],"wp:attachment":[{"href":"https:\/\/bytebrainblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=2402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bytebrainblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=2402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bytebrainblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=2402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}