[resolved] Help with search page (5 posts)

  1. makta112
    Posted 4 years ago #


    I want the change the text that says "Continue reading -->" in the page where search results appear.

    Can anyone tell me in which folder I can find the codes for it so that I can change it?

    I'm using Twenty Eleven.


  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. First create a child theme for your changes.

  3. makta112
    Posted 4 years ago #

    Sorry. I am using a child theme. I want to copy/paste the code in the child theme. But I can't find it?

  4. Michael
    Forum Moderator
    Posted 4 years ago #

    this is more complex than copy/paste;

    first, you need to remove the filters which add the 'continue reading' text to the excerpts, then add new filters with new code, depending on if a search results page is viewed;

    the whole code which needs to be added to functions.php of the child theme, could look like:

    replace this
    'Search Results Continue Reading <span class="meta-nav">&rarr;</span>'
    with your own version of the 'continue reading' text for the search results.

  5. makta112
    Posted 4 years ago #

    Awesome thanks, alchymyth!

Topic Closed

This topic has been closed to new replies.

About this Topic