Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add classes to BP activity items


  • Leo
    Participant

    @wp_new_user

    Hi all,

    I have been searching for a solution to add tags to BP activities with no success.
    I decided to add a drop down select box to the BP activity box (I did) and now I want to add a class to the activity items corresponding to the selected drop down value.

    I could find two ways to do it, though none of them works well for me.

    1. in buddypress.js file in my theme directory I added a js script which adds the classes correctly, but when I reload the page the classes disappear.

    2. second way was to edit the buddypress-functions.php in the theme directory. I added a function that adds a class to all the activity items, but it is regardless anything, I am unable to connect it to the activity form drop down box.

    I have created a gist with the snippets I used https://gist.github.com/seocentury/c52d61659307d248ed91
    could anyone please have a look and let me know how to solve it.

    Thank you in advance!

    sorry if it is unclear or complicated and if you need more information please let me know.

    Regards,
    Leo

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to add classes to BP activity items’ is closed to new replies.
Skip to toolbar