Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

How to keep article headers from changing color after linking

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

On our site we currently have article titles set to in black (000000)--in both category and article displays. We want them always to appear in that color.

However, once a user has clicked on a particular title, the title turns link blue (038bfb), and it will always appear in blue for that user.

Here's an example from test2.chigov.com/chicago/city-services.html :

category.png


In the above example, the first article has been clicked on by the user. The second article has not.

It doesn't work that way in Responsive v 2.2.3; the titles always appear in black, even after a user has clicked on them.

How can we make the titles always appear in black?

Note that we have other links that always appear in blue (see the front page of test2.chigov.com); we want to keep it that way.
  • glow's Avatar
  • glow
  • 3 Month Basic
  • 195 posts
  • Karma: 0
The administrator has disabled public write access.
Here's how we have the template's color parameters set:


colors_2016-03-28.jpg


Jim
  • glow's Avatar
  • glow
  • 3 Month Basic
  • 195 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Jim,

You have this style

h2 a:link {
color: #000000;
}

Which overrides the template style for the standard link but doesn't apply for visited so it defaults back to the blue

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Ah, I see, Paul.

Can I simply amend the CSS so that visited links also appear black?

Jim
  • glow's Avatar
  • glow
  • 3 Month Basic
  • 195 posts
  • Karma: 0
The administrator has disabled public write access.
Try instead

h2 a {
color: #000000;
}

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Too easy! Thanks a bunch, Paul.

Jim
  • glow's Avatar
  • glow
  • 3 Month Basic
  • 195 posts
  • Karma: 0
The administrator has disabled public write access.
No problem

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers