Change display Text – 'Author Archives' & 'Search results for'

  • Unknown's avatar

    Hello!

    Is it possible to replace ‘Author Archives’ and ‘Search results for’ with my own custom text?

    I learnt that this can only be done with a custom CSS. Any help from CSS experts will be highly appreciated.

    Thanks in advance.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Currently I am using opti theme. missed to update in previous post

  • Unknown's avatar

    Hi @nadenudihonalu, Opti has not yet been translated into your language. The Theme and WordPress software create the titles for category/author/tag/archive and search pages as a single string of text, so there is no way to only change part of it with CSS, and since the search term is unique, there would not be a way to change it for every possible search term. if you wished to change the title to something generic, like “Search Results” in your language, you can use this.

    .search-results .pagetitle {
    	visibility: hidden;
    }
    .search-results .pagetitle:before {
    	visibility: visible;
    	content: "Search Results";
    }

    For the author page, you can change it with CSS. Add the following to your custom CSS and then edit the content string value between the quote marks and add your own title.

    .author-nadenudihonalu .pagetitle {
    	visibility: hidden;
    }
    .author-nadenudihonalu .pagetitle:before {
    	visibility: visible;
    	content: "This is my new title";
    }

    You can help speed things along if you were willing to help translate for the Opti theme into your language. You can find out more about that at Translate WordPress.com.

  • The topic ‘Change display Text – 'Author Archives' & 'Search results for'’ is closed to new replies.