Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Link Colour in Post
Avatar
Hari
Member
Free Members
sp_UserOfflineSmall Offline
Dec 11, 2015 - 4:55 am

Sorry for another short question, but I was searching and found nothing and I guess you folks know the answer in a second:

Currently links in a post have the same colour as normal text and only when you hoover over them with the mouse, get another colour.

I  want to change this to a permanent distinct colour of links.

Is this something the theme is responsible for, or is there some option in SP to change this, I cant find?

Thanks!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 11, 2015 - 5:32 am

Depends what SP theme and overlay you are using. And - whether you have made a child theme or not which would then preserve changes form being updated by us and this lost.

Or - you could wait until after the 5.6 update (due to be released tomorrow) and use the new CSS custom admin panel which is being provided for just these sort of minor overrides.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Hari
Member
Free Members
sp_UserOfflineSmall Offline
Dec 11, 2015 - 5:54 am

I use Theme reboot without any child themes or other customizations.

But the CSS custom panel sounds great, just tell me the "overwrite" I would need.

Thanks

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 11, 2015 - 6:19 am

Just using:

#spMainContainer a, 
#spMainContainer a:link, 
#spMainContainer a:active, 
#spMainContainer a:visited {
    color: XXXXX !important;
}

will deal with just about everything there is. Do not like using the !important directive but in this case it might need the hammer approach.

Of course -you can split these up into separate rules if you prefer,

andy-signature.png
YELLOW
SWORDFISH
Avatar
Hari
Member
Free Members
sp_UserOfflineSmall Offline
Dec 11, 2015 - 6:39 am

Thanks again. Will try with the new version.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Dec 11, 2015 - 9:32 am

It's definitely going to be the easiest way of testing and using small amounts of custom CSS from now on! Although we'd still recommend using a child theme for more comprehensive changes.

Let us know how it goes..

Avatar
Hari
Member
Free Members
sp_UserOfflineSmall Offline
Dec 13, 2015 - 5:43 am

I tested Yellow Swordfishs suggestion with 5.6 and it works. Fine thing!

But ..... there is always a "but" 😉

The generell solution of Yellow Swordfish, unfortunately changes "every colour of any link" and that doesnt make sense in my case, as it makes text with coloured background (for example in the statistics and in the group overview of the forum) unreadable.

What I am looking for is a solution just for the text in the posts. Nothing else changed.

Is it possible to provide me with a short CSS that just changes the behaviour of the link colours display in the posts itself, but NOT for the general colour structure of the theme?

In fact I even dont need a change of colour, the theme colour is fine for the posts too. All I need is a CSS, that changes the "hoovering behaviour" in the text when moving a mouse over. I need to change this into showing the colour permanently, independent of a mouse-over!

Or in other words: Links in the posts should be identifyable as links immediately and not just when by accident moving the mouse over!

Unfortunately I am no CSS expert, so I would need your help to code this.

Thanks!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 13, 2015 - 5:55 am

Use

#spMainContainer .spTopicPostSection .spPostSection .spPostContentSection .spPostContent a:link,
#spMainContainer .spTopicPostSection .spPostSection .spPostContentSection .spPostContent a:active,
#spMainContainer .spTopicPostSection .spPostSection .spPostContentSection .spPostContent a:visited 
{ }
andy-signature.png
YELLOW
SWORDFISH
Avatar
Hari
Member
Free Members
sp_UserOfflineSmall Offline
Dec 13, 2015 - 6:11 am

Thanks, but no -> no change. Colour of a link still shows up only in "Mouse-over" Mode.

Theme: Reboot - blue, no childthemes or customizations.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 13, 2015 - 6:16 am

Works just fine my end. Did you clear your browser cache?  And what rules did you put in place?

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626