Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Widget logic 1.2


@mercime
Keymaster

@mercime

One way is

if (bp_is_profile_component()) {
include ('profile.php');
}

where profile.php is widgetized and you can add the widget in your dashboard’s Appearance > Widget panel. Are you using 1.2 bp-default theme or bp-sn-parent theme?

https://codex.buddypress.org/developer-docs/conditional-template-tags/

Btw, if you use conditional statements for bp themes, do not add a standalone is_page() – need to add page ID/slug/name within () – otherwise it will override conditional statement for bp_is_profile_component() and other conditional statements for other BP-generated pages.

Skip to toolbar