Nav Menu Issue When using better-search-template.php
-
Hi There,
I’ve created and activated a better-search-template.php file and it works perfectly, apart from one issue with my Main Navigation menu.
On the Search Results page, the styling for the Nav menu is not being produced, so the menu is misaligned. See photo below:
You can test out on my live site here: https://www.chroniclesofanelyrian.com/?s=character
This is what’s in my better-search-template.php file.
<?php /** * The template part for displaying results in search pages. * * @link https://developer.www.ads-software.com/themes/template-files-section/partial-and-miscellaneous-template-files/#content-slug-php * * @package Primer * @since 1.0.0 */ get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <header class="page-header"><h2>You Searched For: <?php echo get_search_query(); ?></h2></header> <?php $s = bsearch_clean_terms( apply_filters( 'the_search_query', get_search_query() ) ); ?> <?php echo get_bsearch_results( $s, $limit ); ?> <?php echo $form; ?> </main><!-- #main --> </div><!-- #primary --> <?php get_sidebar(); get_sidebar( 'tertiary' ); get_footer(); ?>
Can you offer any advice on how to get the menu back to normal?
Many thanks,
Andy.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Nav Menu Issue When using better-search-template.php’ is closed to new replies.