WordPress.org

Ready to get started?Download WordPress

Forums

Flexible Posts Widget
[resolved] Changing the link colors (8 posts)

  1. silvermane
    Member
    Posted 1 year ago #

    Hi,

    The post links are all standard black and don't conform to the link/hover colors defined in my style.css. How can I change the link colors used by the plugin?

    Thank you and keep up the great work! :)

    http://wordpress.org/extend/plugins/flexible-posts-widget/

  2. DaveE
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Silvermane,

    Without a link to preview the issue it's hard to say why the links are still black. I'm guessing this is because the default FPW template includes heading tags (such as an <H4> for the post title) and your theme may style them differently (with black) than with generic <a> tags. Try adding a CSS declaration like this: .dpe-flexible-posts a h4 {color:red;} to see if you can make the links red.

    Hopefully that helps,

  3. silvermane
    Member
    Posted 1 year ago #

    Thanks, Dave, that did the trick! :)

  4. DaveE
    Member
    Plugin Author

    Posted 1 year ago #

    Good to hear! Yes, I'm thinking I may adjust the default template in the future so it uses a more traditional (X)HTML4 structure as supposed to the current HTML5 structure. Sorry for the trouble.

  5. rtfox1000
    Member
    Posted 1 year ago #

    for someone who knows just enough about coding to be dangerous, which .css file should that addition be made? or is it a line of code unto itself?

  6. rtfox1000
    Member
    Posted 1 year ago #

    Nevermind, fixed it. Was just a line of code unto itself.

  7. DaveE
    Member
    Plugin Author

    Posted 1 year ago #

    Glad to hear you were able to figure it out. Nice work!

  8. brit77
    Member
    Posted 11 months ago #

    Just stumbled upon this same issue and solved it with a bit of CSS to apply my link and hover colors back to the links.

    If the code was structured differently: <h4></h4>
    instead of having the h4 inside of the a tag as it currently stands, would this solve the problem of over-riding the link styles with the h4 style?

    It's not a huge ordeal as I have it fixed now, but should I ever change my default link colors, I'll have to remember to change the CSS for this widget's output too! Anyway, I'm not sure if it's even feasible for you to change this structure, but just in case it is possible, I thought it worth mentioning since it would make things easier and more consistent for your end users. :)

    Thanks for an awesome plugin by the way...you solved a big problem for me and saved me lots of time and agony!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic