Support » Themes and Templates » TwentyEleven theme style.css overrun from php?

  • Resolved kandik

    (@kandik)


    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.)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Are you using a custom css plugin?

    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!

    Thread Starter kandik

    (@kandik)

    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

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

    Thread Starter kandik

    (@kandik)

    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘TwentyEleven theme style.css overrun from php?’ is closed to new replies.