ThemeShaper Forums » Thematic

[closed]

Change 'page title' for categories, search results, tags etc

(3 posts)
  • Started 4 years ago by Boxadesign
  • Latest reply from ridgely
  • This topic is not resolved
  1. Hi I can kind of do it but it doesn't work properly. I would like to change the title text for my results pages i.e categories, search results etc - the ones that use the thematic_page_title filter

    The default text reads...'Category Archives: blah blah blah'

    I want it to say...'Items filed under: blah blah blah'

    I found the filter (in content-extensions.php) that determines where to show what and then created a function to change that particular if (is_category())call.

    Here is my function...


    function change_title() {
    if (is_category()) {
    $content .= '<div class="archive-meta">';
    $content .= __('Items filed under:', 'thematic');
    $content .= ' <span>';
    $content .= single_cat_title('', FALSE);
    $content .= '</span></div>';
    return $content;
    }
    }
    add_filter('thematic_page_title', 'change_title');

    This works great but none of the other pages then show their titles. I think I'm replacing teh entire filter with just one call. I could add each call to my functions file but that seems like duplicating whats already there as that is the only title I need changing.

    Thanks, Matt

    Posted 4 years ago #
  2. @Boxadesign: The official Theme Filters guide should be helpful for you: under thematic_doctitle()

    Posted 4 years ago #
  3. I'm not sure if you found your answer but I posted about this recently:
    http://forums.themeshaper.com/topic/tip-modify-thematic-page-title
    Hope it helps.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.