Jump to content

Change the color of the "Gift Box" text at PrestaShop 8 checkout.


Recommended Posts

I was changing the text in the checkout from "Check this box if you want a gift wrap" and I realized it would be better to "highlight it" by changing its color. I am using PrestaShop version 8.0.4.

How to do this adding the code on custom.css file? I mean, what text should I add? 

Link to comment
Share on other sites

4 hours ago, ps8moduly.cz said:

Hi.

And are you using the classic template? Because each template can have its own CSS even for standard Prestashop functions and displays.

Hi, yes I already edited the custom.css file into child_classic theme folder to increase price font/character size into product page.

But to change color to the "Check this box if you want a gift wrap" at checkout I dont really know which is the code to add there.

Link to comment
Share on other sites

Hi.

obrazek.png.7f1dcb1a9d487371b897fafc661f5751.png

 

CSS:

/* text color for "I would like to receive my order in recycled packaging."*/
label[for=input_recyclable]
{
    color: yellow !important;
    background: red !important;
}

/* text color for "I would like my order to be gift wrapped...."*/
label[for=input_gift]
{
    color: red !important;
    font-weight: 600;
}

/* text color for "If you'd like, you can add a note to the gift:" */
label[for=gift_message]
{
    color: green !important;
}

/* text color for gift message */
#gift_message
{
    color: blue !important;
}

 

Edited by ps8moduly.cz (see edit history)
Link to comment
Share on other sites

On 2/3/2024 at 6:14 AM, ps8moduly.cz said:

Hi.

obrazek.png.7f1dcb1a9d487371b897fafc661f5751.png

 

CSS:

/* text color for "I would like to receive my order in recycled packaging."*/
label[for=input_recyclable]
{
    color: yellow !important;
    background: red !important;
}

/* text color for "I would like my order to be gift wrapped...."*/
label[for=input_gift]
{
    color: red !important;
    font-weight: 600;
}

/* text color for "If you'd like, you can add a note to the gift:" */
label[for=gift_message]
{
    color: green !important;
}

/* text color for gift message */
#gift_message
{
    color: blue !important;
}

 

Thank you very much, it worked.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...