Support » Fixing WordPress » Using conditional tags page title

  • Resolved soblonde

    (@soblonde)


    I hope to change my search page, using conditional tags to change the page title as it appears on the page. Currently it appears as the
    <h2> Your search returned the following results..
    as in http://brama-sole.co.nz/recipes/?s=pandoro+panettone&x=3&y=9
    I would like the <h2> title to show ‘Your search returned the following results..’ and when there are no results the <h2> title to show Sorry, your search did not return any results. Please try again..
    Can someone assist?

Viewing 3 replies - 1 through 3 (of 3 total)
  • vtxyzzy

    (@vtxyzzy)

    The exact solution depends entirely on your theme. If you are using a free theme, post a link to its download site here and someone may be able to help. If you are using a paid theme, you should contact the theme supplier.

    123milliseconds

    (@123milliseconds)

    You will find the code in the search.php file in the theme’s folder

    Use child themes

    http://codex.wordpress.org/Child_Themes

    My website is a hardcoded derivative of a theme no longer available, so it has been a lot of hit and miss tweaking it. I have solved the problem. I rewrote the search.php page using the tags as shown on this page http://www.designsaga.com/wordpress-search-php/
    My wordpress theme is now looking a lot less wordpress, and into it’s own right.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using conditional tags page title’ is closed to new replies.