Skip to:
Content
Pages
Categories
Search
Top
Bottom

Styling user roles differently? Different templates

  • @juliantrueflynn

    Participant

    Working on a site that has heavy impressions/users. It uses Buddypress.

    So there’s the regular members (set to Subscribers user role for all new registrations). We also have a team of writers (set to Authors or Admins user role).

    Can we style the Admins/Authors differently than subscribers? So a different template for Authors than Subscriber.

    Site info:
    Buddypress Version 2.1.1
    WordPress 4.0.1
    Using Firmasite theme (bootstrap)

    I haven’t edited any core files in WP/BP.

Viewing 1 replies (of 1 total)
  • @rogercoathup

    Participant

    You can add the following template to your theme to override how members profile are displayed: /buddypress/members/single/index.php

    In that index.php you can include different template parts to display the user based on their role.

    So, you’d have a template part to display writers, and a different template part to display subscribers.

    You can read more on the template hierarchy here: https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/

Viewing 1 replies (of 1 total)
  • The topic ‘Styling user roles differently? Different templates’ is closed to new replies.
Skip to toolbar