• 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

Customizing search results page for use with Relevanssi

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 › Customizing search results page for use with Relevanssi

This topic is: resolved
  • This topic has 24 replies, 3 voices, and was last updated 12 years, 3 months ago by Guter.
Viewing 5 posts - 21 through 25 (of 25 total)
← 1 2
  • Author
    Posts
  • January 2, 2013 at 8:46 am #8934
    Bill Murray
    Member

    Glad it worked out the way you wanted.


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    January 2, 2013 at 2:24 pm #9019
    lostintime
    Member

    I just noticed that this solution is not mobile responsive. When using my iPad in portrait mode the Relevanssi output appears *below* the sidebar contents, just above the footer. I"ll try putting some additional css styling in the viewport for smaller displays. Maybe that will to the trick.

    January 2, 2013 at 6:44 pm #9081
    Bill Murray
    Member

    That's happening because right now, the order of the divs is content...sidebar...didyoumean (the Relevanssi function). You need to see if you can change that content...didyoumean...sidebar. Since the default priority is 10, try a priority that is > 5 but < 10 to see if that helps get that order. (You can see the order using a tool like Firebug for Firefox.)

    With the right order, it is a matter of then adjusting the mobile responsive styling for the didyoumean ID's, which will be found in a series of media queries at the bottom of your child theme's stylesheet. In general, didyoumean should have the many of the same properties as #content.


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    January 3, 2013 at 5:01 am #9136
    lostintime
    Member

    Thank you Bill. Will try and experiment a bit to find the best result.

    January 29, 2013 at 2:00 pm #16079
    Guter
    Member

    Guys, you are simply wonderful. Thank you very much for your great dialogue. Here you are my final code:

    // add to child theme functions.php after the call to init.php and before the closing tag (if it exists)
    add_action('genesis_before_content', 'wpp_relevanssi_did_you_mean', 5);
    function wpp_relevanssi_did_you_mean() {
    if ( is_search() ) {
    if (function_exists('relevanssi_didyoumean')) {
    relevanssi_didyoumean(get_search_query(), "<div id='didyoumean' style='font-size:20px; padding-bottom:10px;'>Forse intendevi: ", "</div>", 5);
    }
    }
    }

    I'd like to show you final result but the site is in development and well... "Forse intendevi" is italian!

    Thank you!


    My Last Work: Studio Notarile Arcoleo

  • Author
    Posts
Viewing 5 posts - 21 through 25 (of 25 total)
← 1 2
  • The topic ‘Customizing search results page for use with Relevanssi’ 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

© 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