Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

How to do like search page hero ?

  • Juyel Ahmed Liton

    How to do like search page hero https://prnt.sc/ya-aDp9sEo6G?

  • Hi there,

    Are you referring to changing the text of the search results page title?

  • Juyel Ahmed Liton

    Yes

  • Hi there,

    you can use the following PHP Snippet:

    
    function custom_search_result_title( $items) { 
       if ( is_search() ) { 
          $items = str_replace( "Search Results for", "Your replacement search text", $items ); 
       } 
       return $items; 
    } 
    
    add_filter( 'generate_search_title_output', 'custom_search_result_title', 9999, 2 ); 
    

    Just change the Your replacement search text to what you want it to read

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.