WordPress.org

Ready to get started?Download WordPress

Forums

Category Posts in Custom Menu
[resolved] active css class (9 posts)

  1. macrocurio
    Member
    Posted 9 months ago #

    Hello,

    I have been playing around with this plugin and I noticed that when the site is on a post, in the nav all the posts from the same category (that were added through this plugin) will also have the active css class.

    Is there a way for me to change this? I would like to show the current article link as a different colour to the rest of the articles through CSS.

    Thanks :)

    http://wordpress.org/plugins/category-posts-in-custom-menu/

  2. Diana Koenraadt
    Member
    Plugin Author

    Posted 9 months ago #

    Hi,

    thank you very much for reporting this. To be frank, I had not noticed this and will look into it quickly.

    I will have to investigate how WordPress usually determines whether the menu item is active or not, and will report back as soon as I have any findings.

    Again, thank you for reporting!

    Kind regards,
    Diana

  3. macrocurio
    Member
    Posted 9 months ago #

    No worries, happy to help :)

  4. jansolo76
    Member
    Posted 9 months ago #

    Hi Diana,
    same Problem here. Are there any progresses already? I was searching for a solution by myself to tweak the plugin, but without success.

    Best Regards,
    Jan

  5. jansolo76
    Member
    Posted 9 months ago #

    Hi Diana and macrocurio,

    i found out if you delete transferring the class in line 214
    ($post->classes = $menu_item->classes;) it does as it should.

    Best Regards,
    Jan

  6. Diana Koenraadt
    Member
    Plugin Author

    Posted 9 months ago #

    Hi Jan,

    thank you kindly for pointing out the line that causes problems. I will update the plugin with that change shortly.

    Kind regards,
    Diana

  7. Diana Koenraadt
    Member
    Plugin Author

    Posted 9 months ago #

    Hi all,

    I've updated the plugin. Closing this thread.

    Kind regards,
    Diana

  8. macrocurio
    Member
    Posted 9 months ago #

    Thanks Diana! Really appreciate it :)

  9. Diana Koenraadt
    Member
    Plugin Author

    Posted 9 months ago #

    No problem. However, the next update will involve another change in CSS class handling. See http://wordpress.org/support/topic/issue-with-default-wordpress-sidebar-menu reported by Adrian Fisse.

    I hope I can find a solution that will work for both cases.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.