Czy chcesz dodać wyszukiwanie rozmyte do swojej witryny WordPress?
Dodanie wyszukiwania rozmytego pomaga użytkownikom łatwo znaleźć informacje, których szukają, nawet jeśli źle sformułują lub w inny sposób nieprawidłowo wprowadzą swoje zapytanie. Poprawia to ogólne doświadczenie wyszukiwania i zaangażowanie użytkowników w Twojej witrynie.
W tym artykule pokażemy Ci, jak łatwo dodać wyszukiwanie rozmyte do swojej witryny WordPress.
Co to jest Fuzzy Search i dlaczego powinieneś dodać go do swojej witryny?
Wyszukiwanie rozmyte szuka częściowych dopasowań dla wyszukiwanego hasła, nawet jeśli nie ma dokładnych dopasowań, i pokazuje użytkownikom najbardziej odpowiednie wyniki.
W ten sposób użytkownicy mogą znaleźć właściwą treść na Twojej stronie nawet jeśli popełnią literówki w zapytaniu.
Domyślnie wszystkie witryny WordPress są wyposażone w podstawową funkcję wyszukiwania, która pokazuje tylko wyniki dla dokładnych dopasowań.
Na przykład, jeśli użytkownik źle napisze termin, nie zostaną wyświetlone żadne wyniki, nawet częściowe dopasowania. To tworzy złe doświadczenie wyszukiwania dla użytkowników i często powoduje, że opuszczają twoją stronę. Możesz to zobaczyć na poniższym obrazku.
To jest, gdzie SearchWP przychodzi w. Jest to najlepsza wtyczka do wyszukiwania WordPress na rynku, która automatycznie zastępuje domyślne wyszukiwanie znacznie lepszą funkcją wyszukiwania.
W przeciwieństwie do domyślnego wyszukiwania WordPress, SearchWP może używać wyszukiwania rozmytego, a także szukać dopasowań w tytułach, fragmentach, treści postu lub strony, produktach, polach niestandardowych, kategoriach, tagach, plikach PDF i innych.
Na przykład, jeśli użytkownik wyszukuje „zabytkowe meble” na swoim blogu WordPress, ale błędnie wpisuje słowo, nadal będą mogli znaleźć twoje posty na ten temat.
Poniższy obraz pokazuje to samo błędne wyszukiwanie za pomocą wtyczki SearchWP.
To powiedziawszy, zobaczmy, jak możesz łatwo dodać wyszukiwanie rozmyte do swojej witryny WordPress.
Jak dodać Fuzzy Search do swojej witryny WordPress
Po pierwsze, musisz zainstalować i aktywować wtyczkę SearchWP. Aby uzyskać więcej szczegółów, zobacz nasz przewodnik po tym, jak zainstalować wtyczkę WordPress.
Po aktywacji musisz odwiedzić stronę SearchWP ” Ustawienia z paska bocznego administratora i przejść do zakładki „Licencja”.
Następnie musisz skopiować i wkleić swój klucz licencyjny i kliknąć przycisk „Aktywuj”. Klucz licencyjny można znaleźć pod swoim kontem na stronie SearchWP.
Wyszukiwanie rozmyte nie jest domyślnie włączone w SearchWP, ale można je łatwo włączyć. Najpierw musisz przejść do zakładki „Zaawansowane” na stronie ustawień wtyczki.
Następnie trzeba po prostu zaznaczyć opcję „Partial matches (fuzzy when necessary)” w sekcji „Actions & Settings”.
Wykonanie tej czynności spowoduje włączenie funkcji wyszukiwania rozmytego dla Twojej witryny.
Gdy to się stanie, powinieneś przejrzeć inne ustawienia SearchWP dla swojej witryny. Wtyczka pochodzi z garścią potężnych opcji, które pozwalają dostosować funkcję wyszukiwania w Twojej witrynie.
Możesz je zobaczyć, po prostu przechodząc do zakładki „Silniki” w ustawieniach wtyczki.
Stąd możesz przypisać wagę do różnych wyników wyszukiwania.
Możesz także kliknąć przycisk Źródła i ustawienia, aby wybrać dodatkowe obszary wyszukiwania. Na przykład możesz włączyć wyszukiwanie komentarzy, produktów i innych zamiast po prostu postów i stron.
Aby dowiedzieć się więcej, zobacz nasz kompletny przewodnik o tym, jak poprawić wyszukiwanie WordPress za pomocą SearchWP.
Dodanie formularza wyszukiwania do Twoja strona internetowa
SearchWP automatycznie zastępuje domyślne wyszukiwanie WordPress.
Oznacza to, że jeśli już dodałeś blok lub widget WordPress Search do swojej witryny, to zacznie on używać niestandardowego algorytmu SearchWP dla wyników.
Jeśli jednak nie dodałeś formularza wyszukiwania do swojej witryny, wówczas możesz to zrobić, po prostu dodając blok lub widget Search do dowolnego postu, strony lub obszaru paska bocznego.
Po prostu udaj się na stronę Wygląd ” Widżety. Znajdź blok „Szukaj” i po prostu dodaj go do swojego paska bocznego.
Nie zapomnij kliknąć na przycisk „Aktualizuj”, aby zapisać swoje ustawienia.
Jednakże, jeśli używasz motywu blokowego, to twój motyw może nie mieć obszaru gotowego na widget. W takim przypadku nie zobaczysz ekranu Widżety w menu Wygląd.
Zamiast tego możesz użyć edytora strony, aby dodać blok wyszukiwania do swojej witryny. Po prostu przejdź do strony Wygląd ” Edytor, aby uruchomić edytor.
Następnie dodaj blok wyszukiwania do swojej witryny, w której chcesz wyświetlić formularz wyszukiwania.
Nie zapomnij kliknąć przycisku Aktualizuj, aby zapisać swoje ustawienia.
Możesz teraz odwiedzić swoją witrynę i wypróbować nową, bardziej wydajną funkcję wyszukiwania.
Na poniższym obrazku widać, jak wyszukiwanie rozmyte zwraca wiele odpowiednich wyników z błędnie wpisanym zapytaniem.
Mamy nadzieję, że ten artykuł pomógł Ci dowiedzieć się, jak łatwo dodać wyszukiwanie rozmyte do swojej witryny WordPress. Możesz również zobaczyć nasz samouczek, jak dodać wielojęzyczne wyszukiwanie w WordPressie i naszą listę najczęstszych błędów WordPress i jak je naprawić.
Jeśli podobał Ci się ten artykuł, to zasubskrybuj nasz kanał YouTube dla tutoriali wideo WordPress. Możesz nas również znaleźć na Twitterze i Facebooku.