InMotion Hosting Support Center

I need to change the color of one line of text

Category: Website Design

VAULT
Asked:
2016-04-13 3:56 pm EST

Hits: 59
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

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User

0

Arn
Staff
42,973 Points
2016-04-13 4:07 pm EST
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.

You must login before you can post a comment about this answer.

Thank you for the quick response Arnel. I will do some coding with this information and see if I can't get something together!
VAULT
86 Points
2016-04-13 4:28 pm EST
Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!