WordPress.org

Ready to get started?Download WordPress

Forums

Posts in Sidebar
[resolved] (Possible addon?) Bold text when selected (5 posts)

  1. lleroy
    Member
    Posted 1 year ago #

    Hello :-)

    Are there any easy way to somehow mark up an entry, when it has been selected?

    Fx. if I click on a post I want to read, the selected post would be marked bold/in another color/be tabbed a little to show it is currently displayed.

    Would be a great addition to an already great plugin :-)

    http://wordpress.org/extend/plugins/posts-in-sidebar/

  2. aldolat
    Member
    Plugin Author

    Posted 1 year ago #

    Good tip! :)
    I have just added a "current-post" class so you can highlight the line with bold, background, etc. In the next hours I'll upload the change to the repository.

    The "current post" class appears only if we are in a single post view AND the post in the sidebar is the same (i.e., has the same ID) as the post in the main body.

    Then you can use your stylesheet to change the look.

    P.S. I'm changing the topic to "Not a support question".

  3. aldolat
    Member
    Plugin Author

    Posted 1 year ago #

    The plugin has been updated to 1.6 and is live now.
    Thanks for your idea!

    Bye.

  4. lleroy
    Member
    Posted 1 year ago #

    I'm the one saying thanks, but you are very welcome :-)

    I have a problem getting it to work though. I updated the plugin, but it doesn't highlight the selected entry.

    Do I need to add something to my theme stylesheet?

  5. aldolat
    Member
    Plugin Author

    Posted 1 year ago #

    Do I need to add something to my theme stylesheet?

    Yes, for example a bold-style:

    li.current-post.pis-li { font-weight: bold; }

    or whatever style you like.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.