Forums

Link in entry content (4 posts)

  1. MetroSonus
    Member
    Posted 5 years ago #

    Hey guys, first off, thanks for all the help, my site is alive and well!

    Next, I'm having one small problem, I dont know if this is with CSS as a whole, or the way the content is addressed in wordpress. What I'd like to do, is specify a different color for the links contained within an entry. But when I enter the tag info under what should be the content, it changes the color of every link on the page. Even if I use subclasses... I'm not sure what to do.. if someone wants to look at my page .. http://www.metro-sonus.com

    I'd seriously appreciate it!

  2. estjohn
    Member
    Posted 5 years ago #

    many themes have a style.css that you can speficy the colours of links, fonts etc

  3. MetroSonus
    Member
    Posted 5 years ago #

    Yes, I know this.. that's not the issue. The issue is I can't seem to make a change only in the content area of the blog. Meaning if I try to target the links within the posts, it changes the entire page. I just want to change the links within the post in the CSS file without having to type an extra code into each link indivudally for a color change.

    That I can't seem to figure out.

  4. Kafkaesqui
    Moderator
    Posted 5 years ago #

    Looking at your site's source...

    .entrycontent a {
    color: blue;

    etc...

    }

    Each of your posts' content is in a div assigned to the class 'entrycontent'. The above would affect any links (<a> tags) found or nested in the entrycontent div, and only those links.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags