WordPress.org

Ready to get started?Download WordPress

Forums

Posts in Sidebar
[resolved] Changing Style for Title Links (5 posts)

  1. Monty Dean
    Member
    Posted 1 year ago #

    Have no problem changing the style for the title (.pis-title).
    How do I change the style for title links?

    https://wordpress.org/plugins/posts-in-sidebar/

  2. aldolat
    Member
    Plugin Author

    Posted 1 year ago #

    You can create a style for this class, for example:

    a.pis-title-link { color: red }

    If it doesn't work, you have to check if there is another rule that bypasses it according to the Cascading StyleSheets rules.

    If you post here the link to your site, I can give more help.

  3. Monty Dean
    Member
    Posted 1 year ago #

    I used your suggestion but it did not change anything.
    Something was overriding the style.

    I then tried your suggestion and added the !important value, for example:

    a.pis-title-link
    {
    font-family: "Times New Roman", Georgia, Times, Serif !important;
    }

    Now everything is great!

    Thanks for your help and keep up the good work!

  4. aldolat
    Member
    Plugin Author

    Posted 1 year ago #

    Using !important is not always the best way, and it should be considered as the last chance. As I said in my previous post, you should check which is the rule that overrides the simple declaration:

    a.pis-title-link { color: red }

    So, for example, if in your style.css there is a declaration like:

    #sidebar a.pis-title-link { color: blue }

    this will ever override the simple a.pis-title-link.

  5. Monty Dean
    Member
    Posted 1 year ago #

    I agree with you. Sometimes it is necessary if you are looking for a quick fix and client is breathing down your neck.

    I'm actually using your plugin not for the sidebar but for the main page area (using shortcodes). I really love how your plugin allows for some flexibility in the way posts are displayed. I use it regularly for my sidebars

    Anyway your suggestion worked like a charm when I modified
    #sidebar and adapted it to the main page section.

    If you have any further suggestions - I'm all ears.
    Thanks again and keep up the great work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.