Search page

This topic contains 14 replies, has 3 voices, and was last updated by  Khanjan Gandhi 4 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #532674

    Khanjan Gandhi
    Free User
    Post count: 7

    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?

    https://investeek.com/search/

    Thanks,
    K

    #532679

    Alex Rollin
    Moderator
    Post count: 27815

    Is 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.

    #532796

    Khanjan Gandhi
    Free User
    Post count: 7
    This reply has been marked as private.
    #532866

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    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.

    #533006

    Khanjan Gandhi
    Free User
    Post count: 7

    I have updated the theme, and the plugins.

    Thank you!

    #533125

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #533177

    Khanjan Gandhi
    Free User
    Post count: 7

    I updated the theme, and had to deactivate the plugin as I am unable to find its license key.

    #533238

    Naveen Giri
    Moderator
    Post count: 1559

    Hi 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

    #533374

    Khanjan Gandhi
    Free User
    Post count: 7
    This reply has been marked as private.
    #533478

    Naveen Giri
    Moderator
    Post count: 1559

    Hi

    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

    #533518

    Khanjan Gandhi
    Free User
    Post count: 7

    Thank you! It works now.

    #533526

    Naveen Giri
    Moderator
    Post count: 1559

    Thanks for confirming, have a great day.

    #533527

    Khanjan Gandhi
    Free User
    Post count: 7

    Just one thing – this text showed up somehow on the GD Archive page

    “Place post type.”
    https://investeek.com/adviser/

    #533531

    Naveen Giri
    Moderator
    Post count: 1559

    Hi 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

    #533534

    Khanjan Gandhi
    Free User
    Post count: 7

    Thank you! That looks fine!

    Have a good day,
    Khanjan

Viewing 15 posts - 1 through 15 (of 15 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount