Skip to:
Content
Pages
Categories
Search
Top
Bottom

add to html markup in bp_activity_action()

  • @matt-mcfarland

    Participant

    IT looks like bp_activity_action() dumps out the following

    <p>
    <a href="" title="">author</a> ...

    Would like to change that to:
    <a itemprop="author" href="" title="">author</a> ...

    Is there any inherent way to just modify the html markup? Like bp_activity_action($args) where I could put stuff in $args?

    If there isn’t then how can I make changes to it instead of using php trim()? Am about to use php trim hacks to fix this b/c getting frustrated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @shanebp

    Moderator

    Look at that function in
    buddypress\bp-activity\bp-activity-template.php

    Use one of the two filters to make your changes, probably with some string operations.

    @macpresss

    Participant

    I’ve made a Trac. to get easier customization for this ‘problem’..

    It’s set for BuddyPress version 2.0
    https://buddypress.trac.wordpress.org/ticket/5261

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘add to html markup in bp_activity_action()’ is closed to new replies.
Skip to toolbar