BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 3
    Josh on #54475

    For the last 3 buttons I made it work with using the translating file to add the tag. But for the first button it is difficult cause this button also uses the same translation for presenting the title tooltip. So if someone hovers over the button he sees <span class=….</span> which is not good.

    I tried to solve this via jquery to prevent the buttom from showing the title but cant make it work. If buddypress wouldn’t use the same text for this button on the button and the title it would be much easier.

    So I have to stay with overwriting the core bp-friends-template file for now :-((

    In case you have a solution for the first button I would be happy to hear it!

  • Participant
    Level: Initiated
    Posts: 3
    Josh on #54457

    Thanks for your answer!!

    I need some more information about your first suggestion. Do you mean put the span tag in a translation file? As far as I know html tags will be stripped off when using them in Poedit?

    Did you mean that or something different?

  • Participant
    Level: Initiated
    Posts: 3
    Josh on #54002

    I found the 4 files where I can make my changes. It is bp-friends-template, bp-activity-template, bp-messages-template and class-bp-toolkit-block.

    Regarding the first 3 templates. Will they be overwritten on next buddypress update? And how can I protect them?
    Copying those files to the child theme does not work regarding to this post: https://buddypress.org/support/topic/copy-buddypress-files-into-child-theme/.