• 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 place adsense google custom search code in menu

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 › Design Tips and Tricks › How to place adsense google custom search code in menu

This topic is: not resolved

Tagged: google custom search, menu

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 1 month ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 12, 2015 at 11:30 pm #168002
    Jinka Varalakshmi
    Member

    Hello Sir,
    I want to place Google custom search code in primary menu. Can any one tell me how to add html code as navigation menu extras.
    I have created searchform.php with google custom search code and uploaded to my child theme directory. But it does not replace existing default search. How to replace existing WordPress search with google custom search.


    My hobby is to learn about new technologies and writing technical tips in my blog whatvwant.com
    Google+ | Facebook | Twitter

    http://www.whatvwant.com
    October 13, 2015 at 1:11 am #168007
    Brad Dalton
    Participant

    Try this http://my.studiopress.com/snippets/nav-extras/


    Tutorials for StudioPress Themes.

    October 13, 2015 at 11:34 pm #168090
    Jinka Varalakshmi
    Member

    With that snippet we can add default wordpress search form to menu. But my question is to add custom html code(Google custom search) to menu.


    My hobby is to learn about new technologies and writing technical tips in my blog whatvwant.com
    Google+ | Facebook | Twitter

    October 13, 2015 at 11:56 pm #168091
    Brad Dalton
    Participant

    Use the code to add a widget to your nav menu and then add Google custom search code to the widget.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ 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