Home>Support>Button problems.

Button problems.

Hello !
I created a button with Buton (SiteOrigin) widget in which i set only color button (orange #f47e3c). In Custom CSS I have introduced the following sequence for the newly created button:
.so-widget-sow-button-atom-1e80d9e62c35 .ow-button-base a {
display: inline-block !important;
padding: 9px 20px;
font-size: 19px;
cursor: pointer !important;
text-align: center;
text-decoration: none;
outline: 0 !important;
color: #ffffff !important;
background-color: #3e8e41 !important;
border: none;
border-radius: 15px;
box-shadow: 0 8px #999;
}

.so-widget-sow-button-atom-1e80d9e62c35 .ow-button-base a:hover {
display: inline-block;
padding: 5px 16px;
font-size: 15px;
cursor: pointer;
text-align: center;
text-decoration: none;
outline: 0 !important;
color: #ffffff;
background-color: #f58446 !important;
box-shadow: 0 1px #999 !important;
}
My problem:
1. On hover background-color: #f58446 does not applied (see https://www.itdomains.ro).
2. I do not know how to apply on click effect (not on hover).
I want a button like this (css code below). Please, if you are kind, tell me how to do.

.button {
display: inline-block;
padding: 8px 18px;
font-size: 24px;
cursor: pointer;
text-align: center;
text-decoration: none;
outline: none;
color: #fff;
background-color: #f47e3c;
border: none;
border-radius: 15px;
box-shadow: 0 9px #999;
}

.button:hover {background-color: #3e8e41}

.button:active {
background-color: #3e8e41;
box-shadow: 0 5px #666;
transform: translateY(4px);
}

Calculate

Thank you.
Dragos D.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 1 month ago diaconus

    Solved ! The answer for both posted problems (see below)

    I created button with plugin (i set only title and link)
    In the “custom css” I added:

    /* General settings for all the buttons created (base view and hover) */

    .ow-button-base a {
    background: rgba(244, 126, 60, 03)!important;
    -webkit-transition: 400ms ease !important;
    transition: 400ms ease !important;
    }
    .ow-button-base a:hover {
    background: rgba(126, 130, 126, 0.3)!important;
    }

    /* Settings for custom created button;
    default view (base) */

    .so-widget-sow-button-atom-1a0e1e077c9e .ow-button-base a {
    display: inline-block!important;
    padding: 9px 20px;
    font-size: 12px;
    cursor: pointer !important;
    text-align: center;
    text-decoration: none;
    outline: 0 !important;
    border: 0 !important;
    border-radius: 15px;
    box-shadow: 0 9px #999;
    }
    /* On hover (when mouse is over the button ) */
    .so-widget-sow-button-atom-1a0e1e077c9e .ow-button-base a:hover {
    background: rgba(204, 51, 0, 03)!important;
    text-decoration: none;
    }
    /* .so-widget-sow-button-atom-1a0e1e077c9e .ow-button-base a:visited, */
    /* Active (on button click) */
    .so-widget-sow-button-atom-1a0e1e077c9e .ow-button-base a:active {
    background: rgba(255, 51, 0, 03)!important;
    box-shadow: 0 4px #666!important;
    transform: translateY(4px)!important;
    }
    /* .so-widget-sow-button-atom-1a0e1e077c9e-button-base a.ow-button-hover:hover */
    /* End of file */

    PS. Do not forget to modify custom button code with your button code (my code 1a0e1e077c9e)

  2. 7 years, 1 month ago diaconus

    PS. I found the answer by reading the posts on this site (https://siteorigin.com/)
    Thanks SiteOrigin.

  3. 7 years, 1 month ago Alex S
    Hi, I Work Here

    Hi Diaconus,

    I’m glad you were able to resolve this issue. I’m sorry I wasn’t able to be of assistance this time. Please be sure to post another thread if you have any other questions.

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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More