Changing Link Color in Post Content Only – WordPress

Installed a new theme on my website. It’s minimalist… It’s free.

๐Ÿ‘‰ https://thememattic.com/minimal-lite-demos/

The problem is… every text is black, including the hyperlink texts.

I want the reader to click on the links, but now they can’t even see it.

By the way, blue is the link color people will most likely on.

๐Ÿ‘‰ https://www.travelandleisure.com/culture-design/why-we-click-on-blue-things

So, I don’t want to waste time looking for another theme.

Instead, let’s add some codes… CSS codes… let’s find them.

Found them, but it didn’t work… every link is blue… even the post title.

๐Ÿ‘‰ https://wordpress.org/support/topic/changing-hyperlink-color-2/

๐Ÿ‘‰ https://wordpress.org/support/topic/css-change-link-color-in-page/

I want the link color to be blue only inside the post content.

So here is my CSS code I wrote myself and it worked.

.single-post .entry-content a {color: #0000EE;} /* CSS link color inside post by AdrianLee */

Ok. future self, come here and copy this code for other websites.

AdrianLee | AdrianVideoImage.com

Loading

Author: AdrianLee
Hi, my name is Adrian Lee and I'm from sunny Singapore. I have a passion for technology and travel, and on this personal blog, I share my experiences through journaling. I hope you enjoy reading my posts!

Leave a Comment or Ask a Question

This site uses Akismet to reduce spam. Learn how your comment data is processed.