Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Bir WordPress Sitesine Google Arama Nasıl Eklenir (Kolay Yol)

WordPress varsayılan olarak yerleşik bir arama özelliği ile birlikte gelir, ancak bu çok iyi değildir. Ancak, daha alakalı ve doğru sonuçlar sağlamak için yerine Google Arama ekleyerek bunu kolayca değiştirebilirsiniz.

Bu, blogunuzdaki kullanıcı deneyimini artıracak ve ziyaretçilerin aradıkları içeriği bulmalarını kolaylaştıracaktır. Bunun etkileşimi artırdığını ve sıradan tarayıcıları sadık okuyuculara veya müşterilere dönüştürme şansını yükselttiğini gördük.

Bu makalede, bir WordPress sitesine Google Arama’yı nasıl kolayca ekleyebileceğinizi göstereceğiz.

Add Google Search in a WordPress Site

WordPress’te Neden Google Arama Kullanmalısınız?

Varsayılan WordPress arama özelliği çok kullanışlı değildir ve genellikle kullanıcı sorgularına uygun sonuçlar bulamaz. Bu da birçok site sahibini alternatifler aramaya zorluyor.

Popüler bir WordPress arama eklentisi kullanabilirsiniz. Ancak sorun şu ki, bu eklentiyi yine de yönetmek zorundasınız ve sunucu kaynaklarınız üzerinde bir etkisi olacaktır.

Öte yandan, bunun yerine Google’ın güvenilir ve güçlü arama özelliğini kullanabilirsiniz. Ücretsizdir, aramayı yalnızca sitelerinizle sınırlandırmanıza olanak tanır ve WordPress sitenizden çalıştırılabilir.

Ayrıca, Google araması hızlıdır, kullanıcılar zaten markaya güvenmektedir ve bakımını yapmanız veya güncellemeniz gerekmeyecektir. Gerekirse kullanıcıların Google’da harici web sitelerinde arama yapmasına bile izin verebilirsiniz.

Bunu söyledikten sonra, WordPress sitenize Google site aramasını nasıl kolayca ekleyebileceğinizi görelim.

Bir WordPress Sitesine Google Arama Nasıl Eklenir

Google Programlanabilir Arama Motoru web sitesini ziyaret ederek WordPress sitenize Google Arama’yı kolayca ekleyebilirsiniz.

Buradan, ‘Başlayın’ düğmesine tıklayın.

Click the get started button on the Programmable Search Engine page

Bu sizi, oluşturmak üzere olduğunuz arama formu için bir ad eklemeniz gereken ‘Yeni bir arama motoru oluştur’ sayfasına yönlendirecektir.

Ardından, “Ne aranacak?” bölümünden “Belirli siteleri veya sayfaları ara” seçeneğini seçin ve WordPress sitenizin URL’sini ekleyin.

Şimdi, Googe Site Araması yalnızca web sitenizde bulunan içeriği dizine ekleyecektir. Ancak, Google’ın diğer web sitelerinden de arama sonuçları göstermesini istiyorsanız, ‘Tüm web’de ara’ seçeneğini seçebilirsiniz.

Add website URL to create Google Site search

Ardından, Google Arama formunuzun web sitenizdeki görselleri dizine eklemesine izin vermek için aşağı kaydırın ve ‘Görsel Arama’ seçeneğini açın. Çevrimiçi fotoğraf satıyorsanız, bir fotoğrafçılık web siteniz varsa veya bir seyahat blogu işletiyorsanız bu seçeneği kullanmanızı öneririz.

Bundan sonra, kullanıcıların sorguları için uygunsuz sonuçlar gösterilmemesi için ‘Güvenli Arama’ anahtarını da açabilirsiniz.

İşiniz bittiğinde, ‘Oluştur’ düğmesine tıklayın.

Click create to generate a google search engine ID

Google artık sizin için arama motoru kimlik kodunuzu oluşturacaktır.

Buradan kodu kopyalayın ve bir Not Defteri uygulamasına veya düz metin düzenleyicisine yapıştırın.

Copy the Google Search Engine ID from the website

Şimdi, WordPress kontrol panelinizi ziyaret etmeli ve sitenizin <body> bölümüne aramayı eklemek için tema dosyalarınızı düzenlemelisiniz. Ancak bu riskli olabilir ve en küçük bir hata web sitenizi bozabilir.

Bu yüzden bunun yerine WPCode kullanmanızı öneririz. Özel kod eklemeyi güvenli ve kolay hale getiren piyasadaki en iyi WordPress kod parçacıkları eklentisidir.

Öncelikle WPCode eklentisini yüklemeniz ve etkinleştirmeniz gerekir. Ayrıntılı talimatlar için WordPress eklentisinin nasıl kurulacağına ilişkin başlangıç kılavuzumuza bakın.

Not: WPCode’un bu eğitim için kullanabileceğiniz ücretsiz bir planı vardır. Ancak, profesyonel sürüme yükseltmek akıllı koşullu mantık, kod parçacıklarından oluşan bir bulut kütüphanesi ve daha fazlası gibi daha fazla özelliğe erişmenizi sağlayacaktır.

Etkinleştirmenin ardından WordPress yönetici kenar çubuğundan Code Snippets ” + Sn ippet Ekle sayfasını ziyaret edin. Burada, ‘Özel Kodunuzu Ekleyin (Yeni Snippet)’ seçeneğinin altındaki ‘Snippet Kullan’ düğmesine tıklayın.

Add new snippet

Bu sizi, snippet için istediğiniz herhangi bir adı yazabileceğiniz ‘Özel Snippet Oluştur’ sayfasına götürecektir. Ardından, sağdaki açılır menüden kod türü olarak ‘Evrensel Snippet’i seçin.

Bunu yaptıktan sonra, Google Arama Motoru Kimliğini ‘Kod Önizleme’ kutusuna yapıştırmanız yeterlidir.

Paste the Google Search Engine ID into WPCode preview box

Ardından, ‘Ekleme’ bölümüne gidin ve ‘Otomatik Ekleme’ modunu seçin. Etkinleştirmenin ardından Google Arama formu sitenize otomatik olarak eklenecektir.

Bundan sonra, arama kutunuzu nerede görüntülemek istediğinizi seçmek için ‘Konum’ açılır menüsünü genişletebilirsiniz.

Örneğin, arama formunu tüm sayfalarınızın ve gönderilerinizin en üstünde görüntülemek istiyorsanız, ‘Gönderiden Önce Ekle’ seçeneğini belirleyebilirsiniz.

Choose location and insertion for the search engine ID

Ardından, en üste geri gidin ve ‘Etkin Değil’ anahtarını ‘Etkin’ olarak değiştirin.

Son olarak, ayarlarınızı kaydetmek için ‘Snippet’i Kaydet’ düğmesine tıklayın.

Save Google Search Engine ID snippet

Google Site arama formunu manuel olarak başarıyla eklediniz.

Şimdi bunu çalışırken görmek için WordPress blogunuzu ziyaret edebilirsiniz.

Google Search preview

Alternatif: Harika Bir Arama Formu Oluşturmak için SearchWP’yi Kullanın

Web sitenize Google Site Araması eklemekte zorlanıyorsanız veya bir alternatif arıyorsanız, dahili arama için SearchWP ‘yi kullanabilirsiniz.

Varsayılan arama formunu otomatik olarak değiştiren ve kullanıcıların sitenizde ihtiyaç duydukları her şeyi bulmalarını sağlayan piyasadaki en iyi WordPress arama eklentisidir.

The SearchWP search plugin for WordPress

SearchWP 50.000’den fazla web sitesi tarafından kullanılmaktadır ve arama algoritmasını ayarlamak için özel bir alaka düzeyi ölçeği oluşturmanıza olanak tanır.

Ayrıca PDF’ler, özel gönderi türleri, medya, yorumlar, özel alanlar, WooCommerce ürünleri ve daha fazlası dahil olmak üzere sitenizin herhangi bir bölümünü aranabilir hale getirebilirsiniz.

Çok dilli bir siteniz varsa, eklenti ile çok dilli bir arama da oluşturabilirsiniz.

Configure SearchWP engine settings

Ancak, Google Arama’dan farklı olarak, eklentinin yalnızca web sitenizde bulunan içerikleri dizine ekleyebileceğini ve sonuçları gösterebileceğini unutmamalısınız.

Daha fazla ayrıntı için SearchWP ile WordPress aramasını nasıl geliştirebileceğinize dair eğitimimize bakabilirsiniz.

Video Eğitimi

Talimatları okumaktan hoşlanmıyor musunuz? Hiç sorun değil! Süreç boyunca size yol gösterecek kullanışlı bir eğitim videosu hazırladık:

Subscribe to WPBeginner

Bu makalenin bir WordPress sitesine Google Arama’yı nasıl kolayca ekleyebileceğinizi öğrenmenize yardımcı olduğunu umuyoruz. WordPress sitenize sesli arama özelliğini nasıl ekleyeceğinize ilişkin başlangıç kılavuzumuzu ve WordPress’te blog yazısı yorumlarını nasıl aranabilir hale getireceğinize ilişkin eğitimimizi de görmek isteyebilirsiniz.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

83 yorumLeave a Reply

  1. I would like to add the google search to my blog because it seems to be very fast and accurate but i do not want my users to see “enhanced by Google” in the search field. I would like to put my own content so that the feature appears to be purely created on my blog. Is that possible?

    • In the look and feel settings of the search engine options there are a few choices you can use depending on what you are wanting to do!

      Admin

  2. Hi there, thanks for the well-explained method. The only problem I had was after activate and save the snipped I was taken to a page: “403 Forbidden Access to this resource on the server is denied!”. How, I guess I have to do something in my cPanel or have to contact the hosting provider to fix this?
    Regards

  3. Great guide!

    Finding relevant information quickly on a WordPress site can be frustrating with the default search. I’ve been considering integrating either the Google Programmable Search Engine or the SearchWP plugin to improve the search experience for my visitors.

    I’m leaning towards SearchWP for better control over relevancy, but I’m curious if anyone has tips for optimizing its performance on larger sites?

    • It would depend on the size of the site, SearchWP has documentation on the plugin’s site for it’s different site size recommendations.

      Admin

    • I have tested SearchWP and can recommend it for larger sites as well. Specifically tested on a website with more than 1300 articles and many categories.

  4. This sounds like a very handy alternative to the classic WordPress search. Does it also have any impact on better indexing of the site?

    • Indexing of your content would be handled through things like SEO plugins, these search options would not affect your indexing.

      Admin

  5. Is there a way to set it up so the search results are served on a custom page of my website – i.e. the search results page or one with my sites header and footer?

    • That would depend on your theme. If you reach out to your theme’s support they should be able to assist.

      Admin

  6. How did you get your WordPress search icon via the header to show Google search results? That is actually what I am trying to do and it seems impossible with my scope of skillset. A tutorial would be great but I am sure it wouldn’t be as easy to give a tutorial on something like that. Thank you for this article, though!

    • If your theme does not have the option to add a search widget to your header, you would want to reach out to your theme’s support for hot to add it to your specific theme.

      Admin

      • I actually figured it out 10 minutes after sending my comment, of course. It involved two things of code from Google. One code replaced what was in my searchform.php file while placing the other code on the search results page. Super easy, but now I just have to customize the looks so that it looks better with my theme.

        Thanks and regards,

        J

  7. When I insert the google engine id the plugin automatically creates a page where the search result will be displayed. But what I need is to change the link of the page where the search result will be displayed. How can I do that?

  8. I am using the WP Google Search Plugin. I was so frustrated because I couldn’t get the search icon show. Your tip on customizing the search box through the dashboard in Google Custom Search solved the problem.

  9. Cool artricle but what I wanted to have a the custom search box in the centre of a blank page as if it was a google search page. I found the plugin Blank Slate which gives the blank page just not sure how to either center and limit the width of the search box either by code or shortcode any ideas ??

  10. Thanks wpbeginner your articles have always helped me a lot. I wanted to do it manually because that way wherever I have search form it’ll be replace by custom google search and your article did work for me as always :)

    When i tried it first it didn’t work because I registered website as http(s) or didn’t enclose the code within a div so it really gave e a hard time. Anyway i am all thanks for your help!!

    Thanks again :)

  11. It works exactly how I want it to, searching 2 different web sites, as long as I am logged into WP Admin. Once I’m no longer logged in to the WP Admin I get

    Not Found
    Apologies, but the page you requested could not be found. Perhaps searching will help.

    What step did I miss?

    • I don’t have much idea about web designing and further customizing. I am learning wordpress blogging from last 5 months, and I think it may be due to a problem while publishing your search result page. There is a visibility option in edit page mode. If that page is private or password protected, this problem you said may arise. If it is done so, make it public..

  12. Plugin method works well for me. But I am trying to replace theme’s native menu bar search functionality with CSE. Its wordpress native search only. So manual editing searchform.php method should work for me.
    But after editing searchform.php my search widget vanishes from sidebar. I am using Colormag theme by themegrill.
    Looking out for a help.

    I am also keen to see mentioned in above comment but this site is offline now. I tried to fetch it from wayback machine but couldn’t found in its past impressions.

    • The same thing happens to me when I paste that code into searchform.php. Not sure this is proper as searchform.php by default is an HTML form. The code copied from Custom Google Search is a JavaScript tag…. should this even work??

  13. Hi Wpbeginner,

    This worked like charm! The manual method is just as awesome as you wrote. Google custom search now showing on my site!

    Thank you so much.

  14. Can you only implement custom search when the site is live and indexed by Google? If it’s hidden or password protected, can it be added then?

  15. I am trying to add Google Search with the Plugin to my website. I got as far as the step where I am supposed to paste the search engine ID into the WP Google Search’s settings page. My settings page does not seem to have any place where I can do this. Can you tell me where the ID should be pasted and what it is called?

    Thanks.

  16. the manual way of doing this is poorly described and a total waste of time. If you gonna do something do it right ir dont do it at all.

    • If you are having difficulty using the manual method, then please try the first method. It is easier to add Google Search with the help of a plugin. If you need to do it manually, then please let us know which part isn’t clear and we will try to explain it here.

      Admin

  17. By using this search plug-in will I be able to see a report on what words were typed in the box to search for?

    I want to know what people are searching for, so I can create content based on their search.

  18. I have updated through plugin method. Only search button is not displayed properly. Please suggest(The text “Search” is moved down, only top portion is visible). Pl suggest

  19. Another awesome tutorial – I didn’t even know it was possible to use Google Search like this! I’ve now got this running on my website, thanks so much!

  20. Nice post, very helpful as well as easily understandable. I have also created my custom search bar by following your steps. Thanks for sharing this great post with us.

  21. Can somebody tell me why this is a more beneficial search than using the standard WordPress search form? Are there SEO implications? I’m just not sure why anyone would use this over the standard search.

    • I generally find that whenever I search a website for a topic, and it’s using WordPress default search – I’ll get VERY poor results.

      They’ll lack relevance.

      By using Google’s custom search, you won’t get any SEO benefits but your readers will find it easier to get what they’re looking for.

  22. In “Search by Google” how to we specify the our google search id ? In widget don’t we have to keep the google search engine id?

  23. Hi – can you tel me please how to remove this? I have just seen it appear on all my pages and I don’t want it at all!

    Many thanks

  24. Hello, and thank you for creating this post and video. I really found it to be helpful in terms of providing better search results for my site WarCraft Press.

    I would however say that you should have pointed out at the beginning of the lesson there are 2 ways to accomplish this task. I did it once with out the plugin then later realized there was a plugin for it.

    That said thanks again for a great lesson and I certainly look forward to future lessons!

    Kombear
    WarCraft Press

  25. Howdy,
    I have seen you recommend editing wp files and wp theme template files like you have in this article for the searchform.php file.

    My concern is when there is a theme update or wordpress update wouldnt the changes to the searchform.php suggested here be lost after for example a theme update?

    Happy trails, Mike

  26. can i use google custom search box and wp normal box all together in my site. or i will have to use only one search box between two of this search box

  27. How to make a search bar that join to google? Not just a small windows as Custom google search. Exactly work as google search.
    Thanks.

  28. Hi ,

    I want to add google search bar to every post of my wordpress site or i want to add google search bar to below main menu could you please help me regarding this.

  29. Well, I have done the same procedure. my theme does not contain searchform.php i created it but it contain searchresults.php i think its theme’s search. but after creating the searchform.php and pasting the code there. another search widget not appeared. Only sahifa search which is theme’s so please can you tell me what the problem. :(

  30. Hi, I would like to know if I can use google custom search for my intranet portal. I have setup wikipedia for internal purpose and I would like to integrate google custom search for this, however I am not getting result when I integrate.
    So the question is: Is google custom search meant only for public websites?

  31. Hi, I went through these steps exactly for my WordPress site, but the search box doesn’t appear anywhere. There are no .js errors in the console. I put a border around the containing div and the border appears, but there’s nothing inside it. I pasted the code I generated from Google inside searchform.php. As a test I also tried pasting the google code on a test page, but still no luck.

    Any ideas on troubleshooting?

  32. Can you please guide me how we cana dd Custom Search in genesis child theme. I tried many tutorials but none of them work.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.