Skip to:

Opened 12 years ago

Closed 12 years ago

Last modified 9 years ago

#4281 closed enhancement (fixed)

Add additional body class for user/account/profile screens

Reported by: hnla's profile hnla Owned by:
Milestone: 1.6 Priority: normal
Severity: minor Version: 1.6
Component: Core Keywords: has-patch
Cc: hnla


It's a major chore when trying to style member account screens at a generic level as we have no simple means of hooking to them as one e.g

body.bp-user {add styles affecting any action screen/component}

Any chance we could slip this patch through it should be non destructive and not cause any issues and make life a lot easier.

if ( bp_is_user() )
$bp_classes[] = 'bp-user';

Attachments (1)

bp_is_user-body-class-01.patch (463 bytes) - added by hnla 12 years ago.

Download all attachments as: .zip

Change History (5)

#1 @boonebgorges
12 years ago

  • Milestone changed from Awaiting Review to 1.6

This is a good suggestion, but you should have suggested it before we went into beta!

We'll make an exception this time, because you're right that it'll make life a bit easier.

#2 @boonebgorges
12 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [6141]) Add a bp-user body class when viewing a user page.

Fixes #4281

Props hnla

#3 @hnla
12 years ago

Thank you muchly :)

yep you're right, talk about leaving it to the last minute! It's worse when I admit that I could have added this or should have seen this when I submitted a patch for body classes back in ver 1.2 something

#4 @johnjamesjacoby
9 years ago

  • Version changed from 1.6-beta to 1.6
Note: See TracTickets for help on using tickets.