Home › Forums › WoodMart support forum › Classe for primary buttons
Classe for primary buttons
- This topic has 6 replies, 2 voices, and was last updated 2 years, 10 months ago by Elise Noromit.
-
AuthorPosts
-
November 10, 2021 at 12:07 pm #330739
steph_inventParticipantHello,
I am a using a shortcode and I need to apply the CSS the has been configured for the primary color of the theme buttons.
Would please give me the Class name that I can use?
Thank you
RegardsNovember 11, 2021 at 12:32 am #330944
Elise NoromitMemberHello,
Please provide the page URL where you want to change the button and its screen. I will inspect the element and give you custom CSS.
Best Regards
November 11, 2021 at 1:00 am #330946
steph_inventParticipantHi,
below is the URL for the page as well as a screenshot of the button.
I need to show the button in red background and bigger size and when I hover it, it should turn on to black background.
Thank you
RegardsAttachments:
You must be logged in to view attached files.November 11, 2021 at 11:41 am #331110
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
body button.configure-product.configure-product-simple { background-color: yellow; color: red; margin-bottom: 10px; } body button.configure-product.configure-product-simple:hover { background-color: orange; color: red; margin-bottom: 10px; }
Please set the colors as per your needs. The first snipped is for the default button state, the second is for the hover state.
Best Regards
November 11, 2021 at 5:47 pm #331249
steph_inventParticipantHello,
Thank you for your reply.
I am not sure that the default button of the theme will work since when I inspect the code of the button I have sent you above I see the class ” is-shortcode configure-product-simple configure-product configurateur”
However the one you gave me is different.
Thank you in advance
RegardsNovember 11, 2021 at 6:03 pm #331251
steph_inventParticipantHi
Seems to work
I have changed the CSS to this once
button.is-shortcode.configure-product-simple.configure-product.configurateur:hover {
background-color: black;
color: white;
margin-bottom: 20px;
}
button.is-shortcode.configure-product-simple.configure-product.configurateur {
background-color: red;
color: white;
margin-bottom: 20px;
font-size: 16px;
}November 11, 2021 at 11:48 pm #331285
Elise NoromitMemberHello,
Please consider the settings colors in the Theme Settings > Styles and colors > Buttons.
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register