Does anyone have a resolution for my icon with text on product page issue? Basically, only on mobile, my text is hyphenated and doesn’t look good. Is there a way to code it so that there is not hyphenations and it is full words? Or I may have to make the text smaller only on mobile? What is the code for both of these options? Thank you very much. Ella.
For mobile, you can stop the hyphenation and adjust text size using CSS. If you want to disable hyphenation entirely, try adding something like this to your theme’s CSS:
If you prefer to adjust the text size on mobile to avoid hyphenation, you can wrap that in a media query. For example:
@media only screen and (max-width: 768px) {
.icon-text {
font-size: 14px; /* Adjust as needed */
}
}
Just replace .icon-text with the actual class or selector used for your icon with text. These tweaks should help display the text as full words without unwanted hyphenation or overly small text.
I have added this all to base.css but still not working, It’s not so much the hyphenations, its that the words are breaking up for some reason. Thank you
I understand the issue you’re facing—no worries at all! To properly diagnose and fix this, I’ll need access to your store to check the exact placement of the code and ensure it’s working correctly. If you’re comfortable with this, feel free to send me the Collab code and store URL via email, and I’ll take care of it.