Custom button color

Hi,

is it possible to customize the color of the buttons?

I've tried inserted a new class, style and background-color directly in the shortcode, but the button still don't change color. It goes for this page:


The three top buttons are correct, but I want the two bottom buttons to be blue with with text. I've manage to change the text-color, but not the background-color. I know I can set the color in the Options panel, but this affects all buttons, not just these two. 

Thanks.

- Vivian

Comments

  • Hi,

    if you want to changes colors for few buttons only, you need to set custom class name for button and then change these colors with css. What is the class name of buttons for which you want to change colors and where exactly we can find them?
  • I have made a custom class called .fb-linkbutton and implemented it in the BeTheme Options -> Custom CSS and JS. It looks like this: 

    /* Custom buttons presseside*/
    .fb-linkbutton {
    background-color: #388fa3 !important;
    color: #388fa3;
    }

    Then I sat the class for the two buttons I want in this color, like this: 
    [button title="Gå til bildebanken" icon="icon-camera" link="/bildebank/"  color="#388fa3"  font_color="#ffffff" icon_position="right" class="fb-linkbutton" ]<br>
    [button title="Nyhetsarkiv" icon="icon-archive"  link="/nyhetsarkiv/" color="#388fa3" font_color="#ffffff" icon_position="right" class="fb-linkbutton"]

    But nothings happen. What am I doing wrong?

  • The css in this case should be as below:
    a.fb-linkbutton .button_icon, a.fb-linkbutton .button_label { background-color: #000 !important; color: #FFF !important; }
  • Thank you. That worked! :)

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.