Tags Capitalization

XenBurger

Active member
I have requested that my users properly capitalize tags, because I read a long discussion from developers recently stating that tags being all lowercase was just a "thing that happened" on the web, but there was no rhyme or reason to it. I think capitalized tags look better, present better in Google, and are just a more pleasant way of displaying keywords in text links.

I found this thread also: https://xenforo.com/community/threads/tags-suggestions.101992/

But when I edit an existing tag, it ignores my capitalization.
So I created a new tag after deleting it. Same words.
Again it ignored my capitalization.

Is capitalizing tags not possible on XenForo?

Thanks
 
Last edited:

Chris D

XenForo developer
Staff member
Correct. All tags are converted to lower case. MySQL is case insensitive by default so "Tag" is the same as "tag" so we cast all tags to lower case for consistency.
 

OD31

Member
Hi
In a "tag" page (template tag_view), I'd like to capitalize the first letter for the <title> and <h1> HTML tags.
Is it possible? How?
Thanks
 

S Thomas

Well-known member
Add this to your tag_view template
HTML:
<xf:css>

    .p-title-value {

        text-transform: capitalize;

    }

</xf:css>
This will capitalize the tags. No clue about the title itself, though.
 

OD31

Member
Thank you but I haven't detailed enough: I want that only the first letter of the first word be uppercase.
The CSS idea is great, but doesn't work for the <title> tag, which is algo important for me.
 

Veer

Well-known member
Add this to your tag_view template
HTML:
<xf:css>

    .p-title-value {

        text-transform: capitalize;

    }

</xf:css>
This will capitalize the tags. No clue about the title itself, though.
This code work but it doesn't capitalize the page title in browser tab and google index. I hope there's a way.
 
Top