Bug: Search Page doesn't pull in Title (h1)

This topic contains 12 replies, has 3 voices, and was last updated by  identity 4 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #528120

    identity
    Lifetime Member
    Post count: 445

    I’ve configured the Search Page Title within the GeoDirectory > General > Titles & Meta settings to this pattern:

    Explore %%search_term%% %%search_near%%

    But instead it uses:

    Search Results for: pizza

    It does pull in the Meta Title and Meta Description as configured.

    Cheers

    #528219

    Alex Rollin
    Moderator
    Post count: 27815

    Please share WP Admin credentials and login URL so we can check on the issue.

    #528237

    identity
    Lifetime Member
    Post count: 445
    This reply has been marked as private.
    #528317

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

    Kiran
    Moderator
    Post count: 7069

    Hi @identity,

    this has been fixed and it will be in next release of Supreme Directory theme.

    To apply patch on your site add following code in end of file WORDPRESS_ROOT\wp-content\themes\supreme-directory\inc\geodirectory-compatibility.php

    
    
    function sd_geodir_search_page_featured_area_title( $title ) {
    	if ( geodir_is_page( 'search' ) ) {
    		$title = the_title( '', '', false );
    	}
    
    	return $title;
    }
    add_filter( 'sd_featured_area_search_page_title', 'sd_geodir_search_page_featured_area_title', 10, 1 );

    Regards,
    Kiran

    #528538

    identity
    Lifetime Member
    Post count: 445

    Excellent, thanks!

    Cheers

    #528540

    identity
    Lifetime Member
    Post count: 445

    One other thing I just noticed though is that if you select one of the suggested locations (e.g., In: Some City) the h1/title on the search page includes the search term, but not the location. The results are filtered by that location though.

    If you type in a specific address location, rather than selecting one of the suggested cities, that location is included in the h1/title (based on my programmatic pattern at least).

    Explore %%search_term%% %%search_near%%

    Don’t know if that is specifically a bug or just a quirk 😉

    Cheers

    #528654

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #528736

    identity
    Lifetime Member
    Post count: 445
    This reply has been marked as private.
    #528854

    Kiran
    Moderator
    Post count: 7069

    Hi @identity,

    I found that near variable not working in titles when searched within selected location from dropdown.

    This has been fixed and it will be in next release.

    Provide us FTP credentials to apply patch on your site or wait for next release.

    Kiran

    #528908

    identity
    Lifetime Member
    Post count: 445
    This reply has been marked as private.
    #528979

    Kiran
    Moderator
    Post count: 7069

    Hello,

    Please check and let us know.

    Kiran

    #529099

    identity
    Lifetime Member
    Post count: 445

    Works like a charm!

    Cheers

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

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

Open Support Ticket