• 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

Holly Bergfors

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 17, 2015 at 4:56 am in reply to: Plug-in to restrict content? #137751
    Holly Bergfors
    Member

    I've used Paid Memberships Pro on a few different sites and haven't had any conflicts with other plugins, plus it's super easy to set up and has options for just about every type of membership plan imaginable. I've experimented with most of the popular premium and free membership plugins and it's by far my favorite.


    Need help getting your Genesis site up and running? Check out my portfolio and get in touch!

    January 15, 2015 at 10:03 am in reply to: Add "hreflang" immediately after on homepage only #137549
    Holly Bergfors
    Member

    The genesis_meta hook is perfect, you just need to set the priority of the action to "1" and it'll load ahead of everything else between the <head> tags. Just add the "1" at the very end like so:

    add_action( 'genesis_meta', 'int_meta_tag', 1 );


    Need help getting your Genesis site up and running? Check out my portfolio and get in touch!

    January 15, 2015 at 9:46 am in reply to: Add Search Box To Search Results Page #137544
    Holly Bergfors
    Member

    Hi there!

    You're going to want to go into your Genesis theme folder (parent, not child theme), copy search.php, then paste it into the root of your child theme folder. Open up the child theme copy of search.php in whatever text editor you usually use for code editing then add this line of code within the genesis_do_search_title function ahead of the rest of its contents:

    echo get_search_form();

    So the function should look like this when you're done:

    function genesis_do_search_title() {
    	echo get_search_form();
    	$title = sprintf( '<div class="archive-description"><h1 class="archive-title">%s %s</h1></div>', apply_filters( 'genesis_search_title_text', __( 'Search Results for:', 'genesis' ) ), get_search_query() );
    	echo apply_filters( 'genesis_search_title_output', $title ) . "\n";
    
    }

    Save the file then test to make sure it shows up on your search results page. The styling will probably have to be tweaked a bit, but that should get you what you need.


    Need help getting your Genesis site up and running? Check out my portfolio and get in touch!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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