Site logo

Archived topic

Using multiple hyperlink styles

3 replies · Started by David on October 12, 2020

Viewing posts 1–4 of 4

Hi,

I'd like to use different styles for hyperlinks across my site--one style for links appearing in the body of text and another style for article headers. The default link style works fine for inline text links, but when I link to an article title it overrides the header style--applying the standard link formatting instead. Can I define multiple link styles? How else can I link from header text without applying the standard link formatting?

Thanks

Hi there,

Any chance you can link us to the site in question?

You can use the private information field.

Let me know :)

The site isn't published. Is there a way to create alternative formatting for links?

Hi,

Providing assistance is pretty tough if we can't see what you're working on. Any chance you can link us to atleast, a dev or staging site?

But to try to answer the question: You can definitely do this w/ custom CSS.

If you want all links on the page to have the same style you simply use something like this:

body a{
/* your style here */
}

If you want to style something specific like blog post list title link you can try this:

.entry-title a{
/* your style here */
}

Note: These are just examples. We can't really determine which CSS selectors to be used for your site specifically as we've yet to inspect your site.

This archived topic is closed to new replies.