• Anonymous User 8639124

    (@anonymized-8639124)


    WordPress version: 3.5.1
    WordPress SEO version: 1.4.7

    On my site, most tag and category names are in all lowercase. (Only proper nouns have their words’ first letters capitalized.) However, all-lowercase tags and category names look a little sloppy inside <title></title>, so I’d like to do a little preg_replace’ing (like this: http://www.aaronlumsden.com/wordpress/title-case-function/) to tweak the capitalization within the <title> tag only.

    Here’s where I’m dense though: where/how would I run that code in WP SEO? My best guess is around line 257 (when the function wpseo_get_terms is definied) of wpseo-functions.php, but I’m just behind the curve enough that I can’t wrap my head around what’s right to do.

    Any thoughts?

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Anonymous User 8639124

    (@anonymized-8639124)

    (Just a quick followup that a friend pointed out to just use the simpler text-transform property in CSS to do the capitalization. But still any idea what lines generate the <title> content?)

    Thread Starter Anonymous User 8639124

    (@anonymized-8639124)

    More or less, but I’d love to keep WP SEO’s “Force rewrite titles” option turned on and, I think, WP SEO overwrites any of those kinds of changes unless I can get them inside a WP SEO file at the right spot.

    Best practices would say don’t mess with core plugin code, so I may just bite the bullet on capitalization and tweak the title content structure to look a smidge nicer using lower case for categories/tags. So like instead of…

    Capitalized Category Term — Site Name

    …I’ll go with…

    Site Name — “lowercase category term”

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to apply title case to category/tag names inside ?’ is closed to new replies.