Quantcast
Channel: Is bp-friends-template.php editable? – BuddyPress.org
Browsing latest articles
Browse All 22 View Live

Reply To: Is bp-friends-template.php editable?

Well there is a filter on the button assembly in that file return bp_get_button( apply_filters( 'bp_get_add_friend_button', $button ) ); so you could do this: function my_add_friend_link_text($button)...

View Article



Reply To: Is bp-friends-template.php editable?

Sorry, we seem to be talking at cross purposes. Adding body classes doesn’t do anything useful for me, I wanted to add classes to the html generated for the button, either add to wrapper_class or...

View Article

Reply To: Is bp-friends-template.php editable?

As Hugo said you could always add classes to the body element. You would do it like this: //add class to body element function add_to_body_class( $classes ) { $classes[] =...

View Article

Reply To: Is bp-friends-template.php editable?

Yeah, I just wanted to add some classes that I’m already using elsewhere in my theme if it’s straightforward to do, hence the question about whether it is possible to edit the bp-friends-template.php...

View Article

Reply To: Is bp-friends-template.php editable?

No don’t change tokens , class & ID’s are best left alone many are there as specific hooks for ajax firing / JS functionality, we went through an exercise of unbinding tokens from markup to allow...

View Article


Reply To: Is bp-friends-template.php editable?

Taking a quick look at the bp-friends-template.php file it would also be able to change some other things, such as the class names that are added to the buttons, though it’s not a deal-breaker....

View Article

Reply To: Is bp-friends-template.php editable?

In this instance I want to change the text for some of the buttons generated, e.g. the ‘Add Friend’ button etc. I know that one way to do it is to use a translation file, but that sort of seemed like...

View Article

Reply To: Is bp-friends-template.php editable?

As @hnla said, bp-friends-template.php isn’t a template file so you can’t override it. Some parts of it may be filterable (look for the apply_filters() function) so you may be able to modify parts of...

View Article


Reply To: Is bp-friends-template.php editable?

bp-friends-template.php is not an actual template file you don’t override it it’s a core file. You need to explain what you are trying to do.

View Article


Is bp-friends-template.php editable?

I looked through the docs about the new template system and I don’t think this falls within that, but, anyway, is there some way to override bp-friends-template.php (or similar files, for that matter)...

View Article
Browsing latest articles
Browse All 22 View Live




Latest Images