This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Buttons widget length

10 years ago · Last reply by Jean-François Cyr 10 years ago

Hello
How do you ensure that buttons have a minimum length so they line up vertically, irrespective of the length of their text.
I have seen a thread on the same topic with your suggestion involving a custom css ( /* Buttons */.origin-widget-button a { min-width: 220px; }.
Unfortunately it does not work for my environment (my theme is Puro’s Ultra). Hope do you suggest to solve this ?

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

6
  1. Alex S Staff 10 years, 23 days ago

    Hi Jean-François Cyr

    You can set a minimum length for buttons with the following CSS. If you navigate to WP AdminAppearanceCustom CSS, you’ll get our custom CSS editor. Just add the following code.

    .so-widget-sow-button .ow-button-hover {
    	min-width: 100px;
    }

    You might also need to install the SiteOrigin CSS Editor.

  2. Jean-François Cyr 10 years, 23 days ago

    Thank you. This works but it has the undesirable side effect of expanding my social icon bottons (SiteOrigin social media buttons) in my footer…

  3. Alex S Staff 10 years, 23 days ago

    Hi Jean,

    I’ve updated the above CSS. This will make it exclusively set a minimum width for only button widgets.

  4. Jean-François Cyr 10 years, 23 days ago

    Brilliant !

  5. Alex S Staff 10 years, 22 days ago

    Hi Jean,

    Awesome. Is there anything else I can help you with?

  6. Jean-François Cyr 10 years, 22 days ago

    I am all set. Problem solved.
    Merci

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread