WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type List Widget
[resolved] use the dynamic class .current_page_item (6 posts)

  1. wallace11
    Member
    Posted 3 years ago #

    I've spent the last day trying to figure out how to do it, but no luck at all.

    All I want is to mark the current selected item on sidebar, so the user could easily figure out where he is.

    Thanks in advance.

    http://wordpress.org/extend/plugins/custom-post-type-list-widget/

  2. kpgraham
    Member
    Plugin Author

    Posted 3 years ago #

    I added the class this morning. It should appear in the repository in the next 10 minutes of so.

    Please check to see if it works.

    Keith

  3. wallace11
    Member
    Posted 3 years ago #

    This is great! Thank you very much for the FAST reply and application of the request!

    Just a little comment, the default wordpress menu marks the
    <li> as current_page_item, so i had to add a style of:

    #container li a.current_page_item{
    font-weight:bold;
    }

    in addition to the style:

    #container li.current_page_item a{
    font-weight:bold;
    }
  4. kpgraham
    Member
    Plugin Author

    Posted 3 years ago #

    I will markup the li then and update.

    Download a fresh version in a few hours. I won't change the version number. I believe that the repository will build a new zip. if not I will go to a minor version.

  5. kpgraham
    Member
    Plugin Author

    Posted 3 years ago #

    LI tag now has the class as well, I don't think it hurts to leave it in on the anchor tag. I did not want to waste all of Wallace11's work.

    Download the plugin again, if you need this functionality if you updated before 3PM EST on 3/4/2011.

    Don't forget to give me some stars on the plugin page if you like it. Somebody hated the plugin, probably for good reason, but it would be nice to get back to 4 stars again.

  6. wallace11
    Member
    Posted 3 years ago #

    Thank you very much for your hard work :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic