Forums › Forums › Search & Filter Pro › Archive Title Bug
Tagged: archive
- This topic has 12 replies, 2 voices, and was last updated 4 years, 3 months ago by Trevor.
-
Anonymous(Private) August 23, 2020 at 4:14 pm #257040
I have S&F Pro working nearly exactly as I want it, but there is a bug which I don’t know how to fix (and warning, I’m a total noob, so forgive me if I’ve missed something obvious).
I’m using the theme Unos Pro with S&F Pro.
My Search Form is set to display results “as an Archive” using the custom template “index.php”, which mostly works fine. When I do a vanilla search using the built-in WP search bar, the results page has the title: “Search results for: whatever”.
When I use the S&F Search Form however, the first page of results has no title (which is not ideal but liveable). Any subsequent pages, however, have a bug where the title bar contains the entire content of the first result on that results page. i.e. in the bar where a normal search results page would have “Search results for: whatever”, the entire content (inc. pictures, separators, etc.) of the first result is displayed in the title bar.Obviously a quick fix would be to turn on Infinite Scrolling and leave it at that, since the first page seems to be fine, but is there another way to fix this?
I’m totally unfamiliar with .php files, but I suspect the problem is somewhere in these lines from index.php:
// Dispay Loop Meta at top unos_add_custom_title_content( 'pre', 'index.php' ); if ( unos_titlearea_top() ) { unos_loopmeta_header_img( 'index', false ); get_template_part( 'template-parts/loop-meta' ); // Loads the template-parts/loop-meta.php template to display Title Area with Meta Info (of the loop) unos_add_custom_title_content( 'post', 'index.php' ); } else { unos_loopmeta_header_img( 'index', true ); } // Template modification Hook do_action( 'unos_before_content_grid', 'index.php' ); ?>
Anyone able to shed light on where this is going wrong?
-
AuthorPosts