Styling WordPress links

Overview – CSS Styles for WordPress Links

Styling WordPress links is an article to help you learn how to style the links in your WordPress website. Hyperlinks play a very vital role in any article or a website.

External links are an exceptional technique to build connections. On the other hand, internal linking will help search engines understand the structure of your website and help you to establish a hierarchy to focus on more substantial content and pages while you compose articles. The right strategy of internal linking will lead to a boosted SEO and results in higher traffic and exposure to the search engines.

Good to know

You should know the basics of CSS or at least possess some basic understanding of the CSS to achieve this. It is also essential that you learn how to add a custom class in WordPress Gutenberg and where to add the custom CSS in WordPress. Do not panic if you are unaware of what is CSS and how it works. We will share all the needed steps through this article to make it easy for you. If you follow the steps as directed, you should be good to go.

Important Note

Kindly note that these styles are using their specific class names for demonstration. The class name may differ in your situation, and you should use the proper class names for the styles to work for you on your WordPress website. You may refer to CSS Basics for CSM Tools article for an understanding of some of the CSS basics to learn about how you can grab the name of the class of any element on the page and apply the custom CSS styling.

Now that we know some of the importance of hyperlinks let’s take a closer look at how we can make them stand out. When we compose an article, we may use internal or external links to refer to additional content or to provide references. The links that we provide as references will look traditionally simple by default. Sometimes the Reader may overlook the links, and your efforts of adding those vital references and links to other valuable posts or pages inside your website will be wasted. To avoid such a situation, we can style our hyperlinks and make them stand out.

The code written below will turn your hyperlinks into a button-like element on the page. The code is designed to handle every single link found in a paragraph element. We also have a mouseover effect that will call A fancy CSS fill effect to make it look more WowSome.

CSS Code to Style Links in WordPress

p a {
color: #fff;
padding: 1px 10px;
box-shadow: 1px 1px 2px #003157;
border-radius: 15px;
line-height: 30px;
background: linear-gradient(to right, #2196F3 50%, #00114e 50%);
background-size: 200% 100%;
background-position: right bottom;
transition: all .5s ease-out;

p a:hover{
background-position: left bottom;

If you are not sure where to put the Custom CSS code in WordPress, kindly refer to this article to learn how to use custom CSS code in WordPress. With the help of the code above, you will have your link styles precisely like the one we have on our website. [see the link above in this paragraph for reference]


We highly recommend that you make your hyperlinks standout. Hyperlinks, by default, look blue underlined text, which is quite easy to be overlooked. However, using the technique listed above, you will have a higher chance of exposing your hyperlinks and draw the attention of your reader to some of the essential content of pages and external references.

We hope you find this article useful. In case you are stuck and or need help, feel free to drop a comment below or submit your question. Do share it further and add your feedback about the article in the comments section.

About Syed Hussaini

I am a Support Specialist with 15+ Years of experience and exposure in Training, website development on WordPress, Joomla, and Google Sites, Customer Support, IT Operations, Team Management, Knowledge Management. My engagement in a corporate environment and freelance projects has taught me to be highly productive and independent.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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