-
AuthorPosts
-
July 15, 2022 at 10:03 pm #1358556
Hey, I know this isn’t an Enfold-specific question, so feel free to shut me down on this, but I’m at my wit’s end trying to find this solution, so I figured I’d beg you for help ;).
I’m using the Gallery element for a client, and using the Custom Link field to link each of their experts to their bio pages, but the experts have these credentials in their names — MD, PhD, DO, ABPP, etc. — and I notice the title attributes are being changed to sentence case, so the credentials show as Md, Phd, Do, Abpp, etc. on the front-end.
I’ve tried using a couple of tooltips plugins to address this, but since the title tags are being converted before the plugin does it’s work, I can’t use the css text-transform: none to get the solution I need; that just leaves it as sentence case. I could use the plugin and text-transform: uppercase, but that’s not ideal either, since, for example, “PhD” is really the correct syntax I’m looking for.
It seems there might be a javascript solution, but I haven’t been able to find that solution.
Are you able to give me any clues or point me in the right direction on this, by chance?
Thanks so much and lmk if you have any questions.
July 16, 2022 at 12:20 am #1358561Hey sky19er,
Thank you for your question, I did a quick test for the gallery element, and when I add “PhD” to a image title in the media library it doesn’t seem to change the case in the image title:
the results:
I also tested editing the attachment details in the gallery element:
and the results:
so I don’t think that WordPress or Enfold are changing the case by default, perhaps it another script or plugin?
Is this how you are adding the titles?Best regards,
MikeJuly 16, 2022 at 2:32 am #1358566OMG, thank you so much!! I assumed the titles were being changed by WordPress or that sentence case was somehow the html default, but I didn’t think to deactivate the plugins or test the issue on a different site. Never assume — always test! Turns out it was the Rank Math SEO plugin! There’s a setting in there (Rank Math > General Settings > Images > Change title casing) that was set to Title Casing! Thank you SO much for helping me solve this!!!
July 16, 2022 at 11:14 am #1358570Hi,
Great, I’m glad that Mike could help you out. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
RikardJuly 16, 2022 at 6:23 pm #1358583Thanks, yep, you can close it up.
July 16, 2022 at 7:47 pm #1358586Hi,
Glad we were able to help, and thanks for sharing the solution, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘prevent title attributes from getting changed to sentence case’ is closed to new replies.