WordPress.org

Ready to get started?Download WordPress

Forums

Current
How do I lose the "Category Archive:" tag? (5 posts)

  1. rumblecloud
    Member
    Posted 10 months ago #

    How do I lose the "Category Archive:" tag?
    Go here to see example:
    http://rumblecloud.com/category/the-best-place-to-start/

    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.

    r

  2. Greg Priday
    Member
    Theme Author

    Posted 10 months ago #

    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.

  3. rumblecloud
    Member
    Posted 10 months ago #

    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.

    r

  4. rumblecloud
    Member
    Posted 10 months ago #

    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.

  5. rumblecloud
    Member
    Posted 10 months ago #

    Update:

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

    The dastardly Archive Category is nowhere to be found.

    r

Reply

You must log in to post.

About this Theme

About this Topic