How to Change Link Color ?

Posted in: Newspaper
Post count: 12

Hi,

I just recently Started using Text Widget on Home Page to Show Some Links to My Visitors. But Link Color is Blue. I want to Change it to Black. ( Not Theme Color ) How can I Do that ?
.
http://www.ihindishayari.in

Post count: 20686

Hi,

You could change the color of the links in the text widgets, with a code like this for example
https://www.screencast.com/t/XTc3FsVli5

.widget_text a {
color: black;
}

The code must be entered in Theme panel->Custom CSS section.

Thanks

Post count: 11

Hi,

How do I get just post hyperlinks to display a different color, as you have done above with the .widget_text? .post_text? Thanks

Post count: 20686

Hi,


@allongeorgia
Firstly the link color can be defined when creating it, in the post edit screen
https://www.screencast.com/t/2BY6vccjP
If you don’t set a color there, the theme accent color will be the color of the links
https://www.screencast.com/t/9KU8PWOk
Changing the theme accent color will change the link color. If you don’t want to change the theme accent color but only chnage the link color in the post content, use a code like this
https://www.screencast.com/t/BTjgkzpcXMEF

.td-post-content a {
color: yellow;
}

This is a guide on how to use the browser inspector to create CSS code for various website customization
https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/

Thanks

Post count: 11

Simion C.

Thank you for the reply. That helped. Late post back

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.