I have a page of SiteOrigin Buttons each with button text set to align left. When the text is too long for one line it then defaults to centering the text. I would like the text aligned left even if it runs onto two lines.
SiteOrigin Button Text Not Keeping Left
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
Hi Francis,
Do you have a public URL where we can take a look at what’s going on? If you need to keep this URL private from other users, just select “Private Reply” on the bottom right of the comment box.
Hi Alex
Here is a print screen of the problem.
Hi Francis,
Unfortunately, we currently don’t support attachments for email replies. You’ll need to upload the image to a third party image hosting service such as vgy.me
Hi Alex
Please see the problem at http://www.placedirect.co.za/our-stock-2
The problem particularly presents itself when viewed on smaller mobile devices.
Hi Francis,
Ah. Okay, so that’s a tricky situation as we don’t actually account for a completely transparent button. We would personally recommend a simple text link rather than a button widget for your setup as that accounts for this correctly.
Regardless, you can fix this with some custom CSS. If you navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Just add the following code.
You might also need to install the SiteOrigin CSS Editor.
Hi Alex
Appreciate your help. I tried the CSS code. That makes matters worse because now the second line runs into the icon and is further left than the top line.
Hi Francis,
Ah. Didn’t know that was undesired. So to avoid this we’re going to have to use a workaround. Please add the following CSS instead:
Just note that the icons are slightly to the left of where they previously were. This is unavoidable.
Hi Alex
You are a magician. The fix is perfect. Many thanks.