Skip to:
Content

BuddyPress.org

Opened 6 years ago

Closed 6 years ago

#5848 closed enhancement (fixed)

Add group slug to body classes

Reported by: hnla Owned by: boonebgorges
Milestone: 2.2 Priority: lowest
Severity: minor Version:
Component: Core Keywords: has-patch
Cc: hnla

Description

Allow simple style targeting of particular groups to compliment any templating options we have - partly prompted by forum post where user needed to apply styles to a specific group but couldn't easily.

Example patch simply checks for bp_is_group() in bp body classes group section and adds the group name (slug)

Wondering though whether there is a reason this hasn't been done before?

Attachments (1)

5848.patch (491 bytes) - added by hnla 6 years ago.
Add group slug to body classes

Download all attachments as: .zip

Change History (3)

@hnla
6 years ago

Add group slug to body classes

#1 @boonebgorges
6 years ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 2.2

I don't have a problem with this. Let's move to 2.2 for more discussion about syntax.

#2 @boonebgorges
6 years ago

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

In 9049:

Add 'group-$group_slug' body class when viewing a group page.

Fixes #5848

Props hnla

Note: See TracTickets for help on using tickets.