Hello! I’ve got an issue with my header text on mobile devices where the words are being cut off and moved to the line below. For example, “Posters” is displayed as “Poste” on one line, and “rs” on the line below it. This problem doesn’t occur on desktop.
I’ve made several modifications to my theme, including adjusting the image banner to fit the full width and height of the viewable screen area and hiding the header background. I think that the issue may be related to the changes in the image banner size.
How I can fix this issue of the text being cut off? Ideally, I’d like to maintain the current font size, or slightly reduce it. My website is wallculture.co. I’d appreciate any help here.
The key difference is, I did not add these directly into the theme code, rather into the Custom CSS panels found in the theme editor for the affected elements (the Custom CSS panel on the right side of the screen). This was because if I added this code into the theme code directly, it changes the h2 and p size for all text on the screen, which is not ideal. I added some other stuff to optimise other areas of the mobile website, such as changing the font size of p to a smaller one.
If anyone has a more optimised/better way of fixing this exact solution, please share for everyone also having this same issue. For now though, I’m glad I got a rough fix to the issue.
Hey Tim, that was not intentional. Looking in inspector, I also see the there too, no idea where that came from. Tried searching for in theme code, particularly in index.json and other files, but I couldn’t find that non-breaking space anywhere either. After that though, I thought I’d look in the theme editor itself, and nothing seemed out of the ordinary there until I altered the text (added a random letter, then removed it), and the surprisingly disappeared. To fully test I temporarily removed the code I found previously, and can confirm that this was the issue I was facing. I added my code back in anyway as I thought the heading could be a tad smaller on mobile anyway. This is my solution, thank you!