Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Daryl Sirota

    (@fastfngrz)

    Resolved.

    Thread Starter Daryl Sirota

    (@fastfngrz)

    And (as expected) you’re right! I have a “snippets” plugin that allows us to add custom code, and there was the conflict.

    Problem solved, thanks for your quick and accurate help!

    Thread Starter Daryl Sirota

    (@fastfngrz)

    Awesome, fixed my admin search weighting scores just as expected… Now the problem is my search results page still don’t reflect the new weights. I expect I’ve got something overriding the search.php. Looked for the issues you mention in your “90% fix” post, but can’t find anything.

    Is there a good way to track down what PHP files are actually returning the search results? This is my search.php from StoreFront if it helps.

    <?php
    /**
    * The template for displaying search results pages.
    *
    * @package storefront
    */

    get_header(); ?>

    <div id=”primary” class=”content-area”>
    <main id=”main” class=”site-main” role=”main”>

    <?php if ( have_posts() ) : ?>

    <header class=”page-header”>
    <h1 class=”page-title”>
    <?php
    /* translators: %s: search term */
    printf( esc_attr__( ‘Search Results for: %s’, ‘storefront’ ), ‘<span>’ . get_search_query() . ‘</span>’ );
    ?>
    </h1>
    </header><!– .page-header –>

    <?php
    get_template_part( ‘loop’ );

    else :

    get_template_part( ‘content’, ‘none’ );

    endif;
    ?>

    </main><!– #main –>
    </div><!– #primary –>

    <?php
    do_action( ‘storefront_sidebar’ );
    get_footer();

Viewing 3 replies - 1 through 3 (of 3 total)