Skip Navigation

[Resolved] Text Transform not work on Fields and Text

This thread is resolved. Here is a description of the problem and solution.

Problem: I am using a Fields and Text block to display some text, including the post slug. I have set the text-transform property for this block to be "uppercase" but the slug always displays in lowercase.

Solution: It seems that GeneratePress includes some styles for H1 elements that includes the property text-transform: none;, and you would have to override that using custom CSS. Add the CSS class tb-uppercase-override to the Fields and Text block, then add this CSS in the template, an enqueued CSS file, or in Appearance > Customize > Additional CSS:

.tb-uppercase-override h1 {
  text-transform: uppercase;
}

That will override the GP theme style.

This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 10 replies, has 2 voices.

Last updated by kelvinL-2 3 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#1977613
Screenshot 2021-03-07 at 10.30.07 PM.png

Dear Sir/Madam,

I add a Fields and Text to a content template, I want to set the Text Transform to all Uppercase but I don't see the text being uppercase. Please advise how I can fix.

Best regards,

Kelvin.

#1977703

Hello, is krn05 the results of a View, or is it a different shortcode? Can you explain how this text is added to the Fields and Text block?

#1977981
Screenshot 2021-03-08 at 12.44.29 PM.png

Dear Christian Cox,

I added the text from Toolset Field or View.

#1978409

Yes but specifically which field did you choose in Fields and Views? Is it the results of another View, or a field like post title, or post taxonomy, etc?

#1978503

slug

#1978513

Okay that's odd, I am not able to replicate this in my local environment. May I log in and see this in wp-admin?

#1979793

Hi, I added the entry to my hosts file and I'm able to access the login page, but I get an error - I believe it's unknown username:
未知的使用者名稱。請再次檢查或改用電子郵件地址登入。

Can you check?

#1980345

Dear Christian Cox,

Oh, it might redirect you to the live site, I think you need to add two entries like

45.130.228.243 example.com
45.130.228.243 <em><u>hidden link</u></em>

Of course, please replace the domain name

#1981017
Screen Shot 2021-03-10 at 9.03.10 AM.png
Screen Shot 2021-03-10 at 9.13.20 AM.png

I had a spelling error in my hosts file, sorry. I am able to log in now. I see the problem, it seems that the GeneratePress theme includes a style for all H1 elements text-transform:none; and that is overriding the Blocks style applied to the Fields and Text block. You could try a different format other than Heading 1 in the Fields and Text block, or you could override the theme's H1 style by adding a CSS class to the Fields and Text block like tb-uppercase-override. You must press "Return" or "Enter" to apply the CSS class (see the screenshot, it looks like a grey rectangle when added successfully). Then add some CSS to override the GP text decoration:

.tb-uppercase-override h1 {
  text-transform: uppercase;
}
#1981059

That should resolve the problem, let me know if it continues to be an issue.

#1986151

My issue is resolved now. Thank you!