Search page
This topic contains 14 replies, has 3 voices, and was last updated by Khanjan Gandhi 5 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
February 27, 2020 at 8:44 pm #532674
Hi there – In the core plugin, the search page shows the text “Search results for:” three times, no matter what is searched for. How do I fix this?
Thanks,
KFebruary 27, 2020 at 9:15 pm #532679Is it a normal WP Page used for the GD Search archive template?
Please share WP Admin credentials and FTP so we can look into the issue.
February 28, 2020 at 4:06 pm #532796This reply has been marked as private.February 28, 2020 at 11:22 pm #532866Hello,
the theme and GD and GD addons are old and need to be updated to the current version. Please update everything and we will take another look at the issue.
March 1, 2020 at 8:31 pm #533006I have updated the theme, and the plugins.
Thank you!
March 2, 2020 at 5:21 pm #533125This reply has been marked as private.March 2, 2020 at 9:12 pm #533177I updated the theme, and had to deactivate the plugin as I am unable to find its license key.
March 3, 2020 at 7:38 am #533238Hi Khanjan,
the issue seems some conflict with current theme. I hope you have checked it with default theme.
If this fix works for you. You can apply this js fix. which will remove other tags.
add_action( 'wp_head', function () { ?> <script> jQuery(document).ready(function() { jQuery('.container .page-header h1').slice(1).remove(); }); </script> <?php } );?>
Or Please provide us valid FTP so we can check it on our side.
The FTP details are not working.Thanks
March 3, 2020 at 10:37 pm #533374This reply has been marked as private.March 4, 2020 at 11:30 am #533478Hi
I have added patch for it. It was a conflict issue with the theme.
the issue is fixed now please have a look.add_action('wp_head', 'gd_remove_theme_actions'); function gd_remove_theme_actions(){ remove_action( 'travel_agency_pro_page_header', 'travel_agency_pro_page_header', 20 ); add_action( 'travel_agency_pro_page_header', 'custom_travel_agency_pro_page_header', 19 ); } function custom_travel_agency_pro_page_header(){ if( ! is_page_template( array( 'templates/team.php', 'templates/about.php', 'templates/contact.php', 'templates/destination.php', 'templates/testimonial.php' ) ) ){ ?> <header class="page-header"> <?php if( is_archive() && !geodir_is_page('search') ){ if( ! is_tax( array( 'destination', 'activities', 'trip_types' ) ) ){ the_archive_title( '<h1 class="page-title">', '</h1>' ); the_archive_description( '<div class="archive-description">', '</div>' ); } } if( is_search() && geodir_is_page('search') ){ ?> <h1 class="page-title"><?php /* translators: %s: search query. */ printf( esc_html__( 'Search Results for: %s', 'travel-agency-pro' ), '<span>' . get_search_query() . '</span>' ); ?></h1> <?php } if( is_page() && !geodir_is_page('search') ){ the_title( '<h1 class="page-title">', '</h1>' ); } if( is_404() ) echo '<h1 class="page-title">' . esc_html__( '404', 'travel-agency-pro' ) . '</h1>'; //For 404 ?> </header><!-- .page-header --> <?php } }
Thanks
March 4, 2020 at 2:31 pm #533518Thank you! It works now.
March 4, 2020 at 3:00 pm #533526Thanks for confirming, have a great day.
March 4, 2020 at 3:01 pm #533527Just one thing – this text showed up somehow on the GD Archive page
“Place post type.”
https://investeek.com/adviser/March 4, 2020 at 3:08 pm #533531Hi Khanjan,
thats Archive page description. travel agency theme has printed that on archive page.
I have removed it in snippet. Please have a look.Thanks
March 4, 2020 at 3:15 pm #533534Thank you! That looks fine!
Have a good day,
Khanjan -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket