WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] TwentyEleven theme style.css overrun from php? (6 posts)

  1. kandik
    Member
    Posted 1 year ago #

    Hi!

    Im having a problem modifying hyperlink colors in my posts. I used Mozilla Firebug to find out the code controlling the color attribute and found out it comes not from my style.css but somewhere from "?page_id=31". I tried to override it by changing link colors from my TwentyEleven child style.css but it still reads first from location "?page_id=31" (posts permalink address?). Please help

    My post is here: http://www.ktlg.ee/?page_id=31

    (The hyperlink is at the end of the posts text, the word "Loe". It is white so you have to highlight the text, to see it. Help me to change the link to black.)

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Are you using a custom css plugin?

  3. Alx Block
    Member
    Posted 1 year ago #

    It looks to me like you've found the right css and added it to your child theme file. The only issue is that the original css is still overriding the one in your child theme.

    If you add !important to it, it should work:

    a, #site-title a:focus, #site-title a:hover, #site-title a:active, .entry-title a:hover, .entry-title a:focus, .entry-title a:active, .widget_twentyeleven_ephemera .comments-link a:hover, section.recent-posts .other-recent-posts a[rel="bookmark"]:hover, section.recent-posts .other-recent-posts .comments-link a:hover, .format-image footer.entry-meta a:hover, #site-generator a:hover {
        color: #111111 !important;
    }

    I hope that helps!

  4. kandik
    Member
    Posted 1 year ago #

    Thank you for your responses.

    I added !important to the code but it does not effect the color of the link. Mozilla Firebug still shows that the hyperlink color (#ffffff) is inherited from my page permalink address. Cant figure out how to change that without writing the whole code over.

    Im still using TwentyEleven child as my theme and made the changes to the child style.css

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    Are you using a custom css plugin? Something is adding page-specific CSS to the top of your pages.

  6. kandik
    Member
    Posted 1 year ago #

    Solved!

    I was searching for a widget Ephemera and found out, that TwentyEleven gives you an option to change the light and black color scheme + the color of the links . Changed the color from the appearance panel and it works!

Topic Closed

This topic has been closed to new replies.

About this Topic