• 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

Wrap container div around search results

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 › Wrap container div around search results

This topic is: resolved

Tagged: container, modify search, search results

  • This topic has 1 reply, 1 voice, and was last updated 7 years, 4 months ago by [email protected].
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 18, 2019 at 5:08 pm #492426
    [email protected]
    Member

    Hi,
    Is there a simple solution for wrapping a container div around the genesis search results? I'm already using a child theme with child search.php.

    Thanks,
    Drew

    July 19, 2019 at 11:19 am #492434
    [email protected]
    Member

    This is what I came up with. This is a portion of the child theme search.php. Anyone else have a different way?

    ------- PART OF SEARCH.PHP -------
    add_action('genesis_before_loop', 'wp_search_markup_open');
    function wp_search_markup_open() {
    echo '<div id="page-results" class="tab-content">';
    }

    genesis();

    add_action('genesis_after_loop', 'wp_search_markup_close');
    function wp_search_markup_close() {
    echo '</div>';
    }

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Wrap container div around search results’ is closed to new 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