Site logo

Archived topic

Different Coloured Links

5 replies · Started by Ella on May 3, 2022

Viewing posts 1–6 of 6

I don't suppose there's a CSC code I could add, or a way to do it on settings so that:

The links on homepage show the titles in purple so you can clearly see them: https://oncejustadream.com/ But within the blog posts, the links show up as a different colour, eg here: https://oncejustadream.com/how-to-find-time-for-a-side-hustle/

As I've found that if I set them as a brighter colour, it makes the homepage link look a little weird, but making it work for homepage, then makes them not stand out within blog posts which means not many people would click on them!

Looking forward to hearing your thoughts.

Thanks,
Ella

Hi there,

so the home page title links are from the WPSP plugin. So you can use this CSS to specifically style them:

.wp-show-posts .wp-show-posts-entry-title a {
    color: #f00;
}

.wp-show-posts .wp-show-posts-entry-title a:hover {
    color: #0f0;
}

Then you can set the Colors in Customizer > Colors > Content Links to whatever you need without affecting those.

That's great, thank you!

You're welcome

@David I'm using the Read template from the site library.

I did your tip and it worked for the post title on the homepage:

.wp-show-posts .wp-show-posts-entry-title a {
    color: #f00;
}

.wp-show-posts .wp-show-posts-entry-title a:hover {
    color: #0f0;
}

I'd also like this to make sure the author's name and publishing date is in the same colour as the wp-show-posts-entry-title. I tried to play with the CSS using .author-name and .wp-show-posts-entry-date but have had no luck. Any tips? Thanks!

Hi there,

can i see your site ?
If you want - raise a new topic and there you can use the Private Information field to add your URL.

This archived topic is closed to new replies.