Remove the ‘view’ button in the activity stream
-
I’m trying to find a simple way to remove the ‘view’ button from the activity header displayed in the activity stream.
The ‘view’ button (and other meta information) is displayed by the call to bp_activity_action() in the activity loop.
In my child theme, I don’t want to display the view button (and other ‘forced’ on me presentational elements like dots as separators). The only ways I can see to do this are:
- Write an ‘ugly’ filter thats parses the string being returned and strips out the view button (e.g. a filter on bp_insert_activity_meta)
- Write my own ‘API’ calls on the $activities_template that give me fine grained accessed to the data structure – so I can retrieve just the information I need for my theme
Am I missing something obvious? Are there some existing API calls that I’m not seeing?
As a more general point: Why is the core bp_activity_action() template tag ‘forcing’ presentational decisions on the theme developer. Whether you display your activity summary with a dot separator, and with or without metadata, should be a decision that is easy take in your theme, not one that is embedded in the core code.
- The topic ‘Remove the ‘view’ button in the activity stream’ is closed to new replies.