Bulletproof theme, changing the color of the hyperlinks

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

Bulletproof theme, changing the color of the hyperlinks

Post by JWalker »

Hi,

I use the Bulletproof theme, blue color set. Where should I edit in order to change the color of the links, that are inserted in the entries' body ? Please tell me the css file and at which line the change should be made; I have no any knowledge of the CSS stuff.
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Bulletproof theme, changing the color of the hyperlinks

Post by yellowled »

JWalker wrote:I use the Bulletproof theme, blue color set. Where should I edit in order to change the color of the links, that are inserted in the entries' body ? Please tell me the css file and at which line the change should be made; I have no any knowledge of the CSS stuff.
In blue_style.css:

Code: Select all

a {
    color: #1F5F7F;
    text-decoration: none;
}

a:hover {
    color: #505050;
}
a is for any link, a:hover is for, yes, exactly, any link hovered with the mouse.

However, if you only want to change the color for links inside the entries' bodies, you'll want to add this code (at the very end of blue_style.css):

Code: Select all

.serendipity_entry_body a {
    color: #1F5F7F;
}

.serendipity_entry_body a:hover {
    color: #505050;
}
Now, if you add this code and change the colors to your liking (see http://www.w3schools.com/css/css_colors.asp for a detailed explanation on what these funny numbers mean), it will only style links inside the entries' bodies.

Remember that these changes might be overwritten by a future BP update, so make sure you have a backup!

YL
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

Post by JWalker »

Thanks a lot for your help, I did it.
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
Post Reply