Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to get a section identifier in the body tag?


r-a-y
Keymaster

@r-a-y

Since you’re using conditionals, I would comment out the following in your body class function:

$c[] = $bp->current_component; //outputs current component
$c[] = $bp->current_action; // outputs current action

To know what component or action you’re on, I would output that info in your bp member theme header.php.

global $bp;
echo 'type: '.$bp->current_component; //outputs current component
echo '<br />';
echo 'action:'.$bp->current_action; // outputs current action

Then you can clearly define your conditionals in your body class function… the rest is up to you!

Skip to toolbar