• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to add Google Search?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › How to add Google Search?

This topic is: not resolved

Tagged: google search

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 6 months ago by dedsonus.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 31, 2015 at 12:22 am #169693
    dedsonus
    Member

    Hello,
    i've tried these instructions:
    https://www.packet6.com/adding-google-custom-search-to-genesis-framework/
    http://johnlevandowski.com/add-google-custom-search-to-genesis-framework-theme/
    But it didn't work. I can add search widget, but when i search, result page is empty (site.com/search). I've added Google Search Template (i did everything step by step many times).
    Could you please tell me are there any other ways? My theme is eleven40-pro.
    Thank you.

    October 31, 2015 at 6:00 am #169708
    Brad Dalton
    Participant

    No need to do all that, simply add the code for the search form to a text widget.


    Tutorials for StudioPress Themes.

    October 31, 2015 at 11:07 am #169732
    dedsonus
    Member

    Thank you, but i've tried it with no result. Nothing shows up. I used this code:

    <script>
      (function() {
        var cx = '005637352947012259361:m-807l9uvfz';
        var gcse = document.createElement('script');
        gcse.type = 'text/javascript';
        gcse.async = true;
        gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
            '//cse.google.com/cse.js?cx=' + cx;
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(gcse, s);
      })();
    </script>
    <gcse:searchresults-only></gcse:searchresults-only>
    November 7, 2015 at 1:09 pm #170419
    dedsonus
    Member

    Should i add something else like <form>...</form>? Code shown above doesn't show search form.
    Thank you.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble