• 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

Customize Genesis Search Resutls

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 › Customize Genesis Search Resutls

This topic is: not resolved

Tagged: customize search results

  • This topic has 2 replies, 2 voices, and was last updated 13 years, 5 months ago by David Decker.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 11, 2013 at 9:41 am #11229
    mapcom
    Member

    Hello,

    We need to add some lines of PHP that will show up on the search results page to bring in Yahoo ad feeds results. Can someone point me in the right direction on how to do this?

     

     

    January 11, 2013 at 9:57 am #11240
    David Decker
    Member

    Go and add some code to your child theme's functions.php file, a functionality plugin or even via the "Genesis Simple Hooks" plugin.
    Tools you'll probably need: Genesis Hook Reference: http://my.studiopress.com/docs/hook-reference/ and Genesis Visual Hook Guide: http://genesistutorials.com/visual-hook-guide

    With that in mind you could do something like that:

    add_action( 'genesis_meta', 'your_custom_wrapper_function_name' );
    function your_custom_wrapper_function_name() {
    if ( is_search() ) {
    // add_action( 'genesis_before_content', 'custom_function_for_search_display' );
    } // end if
    } // end function

    Choose the best hook for your site within the if statement.

    It's untested but I use similar stuff on a lot of projects. I hope this helps you go your way 🙂


    Twitter @deckerweb // Google+ // My Genesis & WordPress Plugins // German Translations for Genesis

    January 11, 2013 at 9:58 am #11241
    David Decker
    Member

    Ok, I have commented out the add_action within if statement --- just uncomment for real usage of course 🙂


    Twitter @deckerweb // Google+ // My Genesis & WordPress Plugins // German Translations for Genesis

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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