Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 Next > End >>
Re:change link color?
Date: 2007/08/17 01:53 By: beat Status: Admin  
Karma: 239  
Admin

Posts: 3804
graphgraph
This is standard mambo/joomla markup. Your site template should have it included...

To change the link color to red, add to your site template:

Code:

 a.mod_login color:red; }



depending on your site template, you may need to define also the visited and hovers, and maybe even the link variants:

Code:

 a.mod_logina.mod_login:linka.mod_login:visiteda.mod_login:hover color:red; }



To find out more:

Just install web-developeer tools extension for FireFox, then click on the green checkmark at bottom, inspect, then click on what you want to see and you will understand the markup
Beat - Developer on Community Builder core Team
- If you like CB and this forum, you will love Nick's CB 1.1 reference manual ! : Click here to Get it now
- Would like to help us move faster ? Get it, and/or help us spend more time coding by helping others in this forum, many thanks
Click here to see the profile of this user The administrator has disabled public write access.

Re:change link color?
Date: 2007/08/17 02:47 By: mesmer Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 11
graphgraph
Thanks for posting, Beat, but this doesn't answer my question. Your solution will change the color of links for the entire site, when all I want to do is change the color of links on CB profiles.

If your solution to this is as easy and quick as your other reply, I'll be thrilled!

ken.
Click here to see the profile of this user The administrator has disabled public write access.

Re:change link color?
Date: 2007/08/17 03:50 By: beat Status: Admin  
Karma: 239  
Admin

Posts: 3804
graphgraph
Easy...

Code:

 div.cbProfile a color:red; }



or, if needed:

Code:

 div.cbProfile adiv.cbProfile a:linkdiv.cbProfile a:visiteddiv.cbProfile a:hover color:red; }


Beat - Developer on Community Builder core Team
- If you like CB and this forum, you will love Nick's CB 1.1 reference manual ! : Click here to Get it now
- Would like to help us move faster ? Get it, and/or help us spend more time coding by helping others in this forum, many thanks
Click here to see the profile of this user The administrator has disabled public write access.

Re:change link color?
Date: 2007/08/17 06:33 By: mesmer Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 11
graphgraph
You ROCK Beat! No wonder CB is the Best of the Best.

Your first piece of code didn't do the trick (it changed the color of the user's name and last login info.

But the second one, inserted in my CB default CSS file, did exactly what I wanted it to.

Much thanks--this was one of those little details that was driving me nuts.

Thanks to Nant, too, for his initial attempts!

ken.
Click here to see the profile of this user The administrator has disabled public write access.

Re:change link color?
Date: 2007/08/30 15:01 By: Mike McKeown Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 8
graphgraph
intresting read...
I really should be fishing...
Click here to see the profile of this user The administrator has disabled public write access.

Re:change link color?
Date: 2007/08/30 15:19 By: ysva Status: User  
Karma: 17  
Gold Joomlapolitan

Posts: 222
graphgraph
Isn't the link colour the overal colour for ALL links (as defined in your main template)? It seems really weird to me that they've used a different class for that one link in the package, because cb should sort of fall into your template (that's why it uses sectiontableheader from your main template etc.).

Then if you want to change only that one link to a different colour you'll have to add a new class and implement it in the code.


woops, always check your new pages

Post edited by: ysva, at: 2007/08/30 15:20
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 3 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login