- Posts: 128
- Thank you received: 0
How to change the color of buttons at the checkout
- sergiobertini
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
You have to add css properties to your template css file directly, properties like:
www.hikashop.com/support/support/documen...ize-the-display.html
Please Log in or Create an account to join the conversation.
- sergiobertini
-
Topic Author
- Offline
- Posts: 128
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Any of them is ok. Whether you add your custom CSS in your template or in HikaShop, that CSS will be on the pages of your shop.
Please Log in or Create an account to join the conversation.
- sergiobertini
-
Topic Author
- Offline
- Posts: 128
- Thank you received: 0
I added the "custom.css" and "styles.css" my template.
But it did not work!
www.studiocenter.com.py/py/
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Can you show me which CSS code did you use on your CSS files to change the color of your checkout buttons ?
Please Log in or Create an account to join the conversation.
- sergiobertini
-
Topic Author
- Offline
- Posts: 128
- Thank you received: 0
.hikashop_checkout_page .hikashop_cart_input_button{
background: #9dd53a;
background: -moz-linear-gradient(top, #9dd53a 0%, #a1d54f 37%, #80c217 63%, #7cbc0a 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9dd53a), color-stop(37%,#a1d54f), color-stop(63%,#80c217), color-stop(100%,#7cbc0a));
background: -webkit-linear-gradient(top, #9dd53a 0%,#a1d54f 37%,#80c217 63%,#7cbc0a 100%);
background: -o-linear-gradient(top, #9dd53a 0%,#a1d54f 37%,#80c217 63%,#7cbc0a 100%);
background: -ms-linear-gradient(top, #9dd53a 0%,#a1d54f 37%,#80c217 63%,#7cbc0a 100%);
background: linear-gradient(to bottom, #9dd53a 0%,#a1d54f 37%,#80c217 63%,#7cbc0a 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9dd53a', endColorstr='#7cbc0a',GradientType=0 );
}
.hikashop_notice_box_content input{
background: #e6f0a3;
background: -moz-linear-gradient(top, #e6f0a3 0%, #d2e638 50%, #c3d825 51%, #dbf043 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e6f0a3), color-stop(50%,#d2e638), color-stop(51%,#c3d825), color-stop(100%,#dbf043));
background: -webkit-linear-gradient(top, #e6f0a3 0%,#d2e638 50%,#c3d825 51%,#dbf043 100%);
background: -o-linear-gradient(top, #e6f0a3 0%,#d2e638 50%,#c3d825 51%,#dbf043 100%);
background: -ms-linear-gradient(top, #e6f0a3 0%,#d2e638 50%,#c3d825 51%,#dbf043 100%);
background: linear-gradient(to bottom, #e6f0a3 0%,#d2e638 50%,#c3d825 51%,#dbf043 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e6f0a3', endColorstr='#dbf043',GradientType=0 );
}
Please Log in or Create an account to join the conversation.
It doesn't work because the solution provided by Xavier is for when you didn't change the "button style" setting of the HikaShop configuration from "normal" to "CSS".
Since you did, the CSS class names to use are different and should be:
.hikashop_checkout_page .hikashop_cart_button{
/* My property */
}
.hikashop_notice_box_content a{
/* My property */
}
Note that if you know CSS, you should actually be able to find which class name to use yourself with your browser's inspector. It's easy to do and we have a tutorial on that here:
www.hikashop.com/support/support/documen...ize-the-display.html
Please Log in or Create an account to join the conversation.
- sergiobertini
-
Topic Author
- Offline
- Posts: 128
- Thank you received: 0
I just added the code I had a button in gradient and include along with the code you gave me, the "Custon.css" my template.
In the settings, you have an option called "General Options view" and in the "Button style" is marked "CSS".
My question is: can enter the code for this button in the "CSS" in the "CSS file of the page" ????
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Yes, as Nicolas said, if you have set the "Button style" option to CSS, you'll have to use the CSS code that Nicolas gave you and complete it.In the settings, you have an option called "General Options view" and in the "Button style" is marked "CSS".
My question is: can enter the code for this button in the "CSS" in the "CSS file of the page" ????
Please Log in or Create an account to join the conversation.
- sergiobertini
-
Topic Author
- Offline
- Posts: 128
- Thank you received: 0
There clicked on "Edit" and enter the code shown above.
But still does not work!
Please Log in or Create an account to join the conversation.
As I said, you need to change the CSS:
.hikashop_checkout_page .hikashop_cart_input_button{
to:
.hikashop_checkout_page .hikashop_cart_button{
and :
.hikashop_notice_box_content input{
to:
.hikashop_notice_box_content a{
Please follow our explanations and it will work.
Please Log in or Create an account to join the conversation.
- sergiobertini
-
Topic Author
- Offline
- Posts: 128
- Thank you received: 0
Now it worked!
However, on the screen that we select "Continue Shopping" or "complete application", the buttons are still without CSS effect.
Can you help me? The following image attached!
Please Log in or Create an account to join the conversation.
Please follow our explanations and it will work...
You still didn't replace the code
.hikashop_notice_box_content input{
to:
.hikashop_notice_box_content a{
in your CSS.
Please Log in or Create an account to join the conversation.
- sergiobertini
-
Topic Author
- Offline
- Posts: 128
- Thank you received: 0
You saw the picture I showed you? Now are other buttons that want to change the process of adding the product to cart.
Only the Next button checkout that changed.
Please Log in or Create an account to join the conversation.
You can see that you still have "input" there instead of "a":
monosnap.com/file/JW0XqEQfulcEI5naVD817kkr9T15kz
Please Log in or Create an account to join the conversation.
- sergiobertini
-
Topic Author
- Offline
- Posts: 128
- Thank you received: 0
But when adding a product to the cart, the lightbox with the message keeps popping up with old buttons!
The CSS still does not work!
Please Log in or Create an account to join the conversation.
Please apply the css properties on the following ids:
#hikashop_add_to_cart_continue_button{
}
#hikashop_add_to_cart_checkout_button{
}
Please Log in or Create an account to join the conversation.