• Hi everyone, I’m using the Genesis framework and Relevanssi is not replacing my regular search. I built the index and did everything, but when I search, it still shows the regular search results.

    I am using the child theme “Portlight”, but the search.php was under Genesis, not Portlight. I’m unsure if that means the problem is Genesis.

    Here is the code for the search.php:

    add_action( 'genesis_before_loop', 'genesis_do_search_title' );
    /**
     * Echo the title with the search term.
     *
     * @since 1.9.0
     */
    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();

    The website is https://potentspeaking.com

    https://www.ads-software.com/plugins/relevanssi/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Genesis themes should generally be compatible with Relevanssi.

    Your theme probably has a setting where you can change the search results pages to display post excerpts and not complete posts. Try adjusting that. If you can’t find it, do you have theme support where you can ask?

    Having the same issue. The strange thing is that the same site locally shows the results, on my server it doesn’t.

    Hi @potentspeaking,

    I searched on your site, see https://potentspeaking.com/?s=speaking+tips and it displayed search results with highlighted search terms, which I think is Relevanssi-style results not WP.

    So it looks like your issue is resolved. If not, can you reply with specific details?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Relevanssi not working on Genesis’ is closed to new replies.