Edit header landmark text in Search results page

On my search results page there is:
Below you’ll see everything we could locate for your search of “rustic”

Id like to edit this text… what file would I find this in?

Thanks
Rena

Hi Rena,

Thanks for writing in :slight_smile:

Assuming you’re still on Integrity Stack, then you’ll able to find it in \framework\legacy\cranium\headers\views\integrity\_landmark-header.php

Then you may do the customization on that template in your child theme, similar procedure on your other thread :wink:

Hope this helps.

crap :confounded: I broke something. I went in and got the landmark-header.php and then i went to save it in the child theme, since I didnt have the same folders there I assumed I needed to create them. So i created them and put the file in the last one. But it broke my site. So then I went in to delete everything I did and I think in my panic I deleted the files from Pro somehow. Bc now I go in there and im not seeing the legacy folder. What do I do??

PHEW I fixed it! I had dragged it into an other folder on mistake. Ok so now that its fixed… where am I supposed to put the landmark-header in the child theme?

Hello Palila-Studio,

You will need to place the file in this folder:

  • wp-content\themes\x-child\framework\legacy\cranium\headers\views\

Hope this helps. Please let us know how it goes.

So I did just that but no changes have been made. It still says “Below you’ll see everything we could locate for your search of “rustic”” even though I changed this paragraph in the file.

Does it matter that Im using Pro?

Hi Rena,

For Pro, it should be **wp-content\themes\pro-child\framework\legacy\cranium\headers\views**.

In case you’re still not able to get it to work, please provide us with your admin and FTP details so that we can check it.

Hope this helps.

Yea thats exactly what I have…
ill add FTP

Hello Rena,

Please remove the _landmark-header.php file you have added then add this to the functions.php file of your child theme:

/*
  Change Text
*/
add_filter( 'gettext', 'change_texts', 20, 3 );

function change_texts( $translated_text, $text, $domain ) {

        switch ( $translated_text ) {

            case 'Filter by Category' :

                $translated_text = __( "Below you'll see everything we could locate for your search of ", '__x__' );
                break;
        }

    return $translated_text;
}

Please replace Different Text to the custom text you want.

Hope this helps.

That didnt work either.:confused:

Hi There,

I’ve changed the code to this:

/*
  Change Text
*/
add_filter( 'gettext', 'change_texts', 20, 3 );

function change_texts( $translated_text, $text, $domain ) {

        switch ( $translated_text ) {

            case "Below you'll see everything we could locate for your search of " :

                $translated_text = __( "Hello ", '__x__' );
                break;
        }

    return $translated_text;
}

It’s working fine now.

Cheers!

Awesome, thank you

You’re most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.