Support » Theme: Current » How do I lose the "Category Archive:" tag?

  • How do I lose the “Category Archive:” tag?
    Go here to see example:

    Under the header logo the header copy appears as:
    Category Archives: Home

    I cannot for the life of me figure out how to lose the “Category Archives:” part.

    It goes away in subsequent lower level pages. It’s just on the top level pages with no Parent.

    Thanks much for the great theme and support.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there rumblecloud.

    If you open up inc/template-tags.php and change line 209 from this

    $title = sprintf( __( 'Category Archives: %s', 'so-current' ), '<span>' . single_cat_title( '', false ) . '</span>' );

    To this:

    $title = sprintf( __( '%s', 'so-current' ), '<span>' . single_cat_title( '', false ) . '</span>' );

    It’ll change the title.

    You should be using child themes and filtering so_current_archive_title to achieve this, but that’s a little more complicated. This is a quick and easy solution – you’ll just need to reapply the change every time you update the theme.

    Hi Greg Friday – A coincidence maybe — I think not!!
    Hey thanks for your input – wait for it – BUT – you thought it was gonna be easy didn’t you?
    I popped open the offending file and found the lines that need to be changed, but they are different in appearance than what you have posted. I should mention that I originally downloaded version 3.0 of WordPress then yesterday upgraded to 3.6. Not sure if that would make a diff or not.

    Regardless, I changed them to see what would happen. I didn’t work, so I changed it back. Now I get a syntax error – of course.

    Parse error: syntax error, unexpected ‘}’ in /home/content/a/n/d/andrew0612/html/wp-content/themes/current/inc/template-tags.php on line 211
    SO I’m looking for the unexpected ‘}’ and it’s no where to be found.

    Any Ideas? Sorry to have to put you through this. I’ll keep playing. I copied the original code before destroying it, but even with that and simply copying it back into the file it still gives me the parse error.

    Thank you again for your help.


    OHHHHHHHHHH crappola —- i just had an epiphany unfortunately, too late.

    I had your message forwarded to my Outlook mail and opened there. Outlook added a bunch of BS to the message. I used that to update the tags file and it totally f’d the site. I can’t even get beck in to fix it now – although I was able to replace the original file, it still kept giving me the above parse syntax error.

    Live and learn. Looks like I’ll be uninstalling and reinstalling this weekend.

    Thanks once again for your efforts though.


    Your script is working just fine now thank you very much!!!

    The dastardly Archive Category is nowhere to be found.


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I lose the "Category Archive:" tag?’ is closed to new replies.