• 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

Search results in a single box with post-titles

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 › Search results in a single box with post-titles

This topic is: not resolved

Tagged: list, post, results, search, title

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 9 months ago by stevenrmoody.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 9, 2016 at 6:16 pm #192930
    stevenrmoody
    Participant

    I had such great success with my last question I figured, what the heck, I'll ask this one too. I've been trying for two days to do this myself, with no success!

    This is my site (a documentation site for UC Berkeley Library): Asktico

    I want the contents to be very easy to find. If you click on my "ALL CONTENT" link on the sidebar, you get all the posts in an alphabetical list inside a single box, styled to be readable:All Content.

    I did the same thing with the category view (thanks to assistance on this forum), which you can see by clicking on any of the categories listed in the sidebar.

    So my last goal is to get a similar list of posts as the results from the search widget.

    I've been able to eliminate aspects of the results (content, metadata, etc) but still end up with each post represented by a big box with a H1 title inside.

    I assume what I need to do is modify search.php.

    I've copied search.php into my Child Theme folder - this is the code:

    <?php

    add_action( 'genesis_before_loop', 'genesis_do_search_title' );

    function genesis_do_search_title() {

    $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";

    }

    genesis();

    Can anyone help me get a result list in a single container like I've done with "All Content" and "Categories?"

    Thanks in advance - this forum is a life-saver!

    Steve

    http://dev-wpasktico.pantheon.berkeley.edu
    September 9, 2016 at 6:36 pm #192931
    Victor Font
    Moderator

    This isn't an exact match to what you're seeking, but it should get you started in the right direction: https://sridharkatakam.com/custom-search-template-in-genesis-showing-results-grouped-by-post-types/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    September 9, 2016 at 6:47 pm #192932
    stevenrmoody
    Participant

    Hi Victor

    I'll play with it this weekend.

    Thanks for the assist.

    Steve

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

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