I need to change the color of one line of text

Avatar
  • Answered
I need to change one line of text on my front page in prestashop. I found where it pulls from in the global.css file and changed it to white, but the problem is that it also changed all of my product descriptions to white (making them non view able.) Is there anyway to change just that one line of text to white and leave the rest alone?

You can see what I am talking about if you go to vaulttesting.com and look in the top left hand corner of the page where the phone number is.

Thanks in advance,
Zack
Avatar
Arn
Hello Zack, Thanks for the question about changing the color of one line of text. There are two ways to handle this but it's probably easiest to simply make the change inline with the code of the theme. Otherwise, you have to find the code, then use a custom designation for the paragraph and then specify that marker in the CSS. I'll copy an example below from this forum post:

<p>Enter the competition by <mark class="red">January 30, 2011</mark> and you could win up to $$$$ — including amazing <mark class="blue">summer</mark> trips!</p>

The CSS code needed to distinguish the two may look something like:
p {
    font-size:14px;
    color:#538b01;
    font-weight:bold;
    font-style:italic;
}

mark.red {
    color:#ff0000;
    background: none;
}

mark.blue {
    color:#0000A0;
    background: none;
}
The inline code would be applied right before where you text is occurring. This may require the help of the theme developer if you're not familiar with the code. I hope this helps to answer your question, please let us know if you require any further assistance. Regards, Arnel C.