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
Adrian Lee is a seasoned content creator based in Singapore, known for his expertise in smartphone videography, video editing, and live streaming. With a passion for sharing knowledge, Adrian runs VideoLane.com and AdrianVideoImage.com, where he offers insights into his personal experiences alongside practical tips for aspiring creators. With a growing community across various platforms, Adrian aims to empower others through creative storytelling and innovative content techniques.

Leave a Comment or Ask a Question

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