Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding custom HTML to each profile group tab

  • Avatar of MakeNice
    MakeNice
    Participant

    @makenice

    Hello,

    Hopefully someone can help. I am looking to add a different image banner to each of the profile group tabs I have on my Buddypress site. I have identifed the profile-loop.php as the file I need to include this on but when I try the following code it breaks the profile section of my site:

    <?php if ( bp_the_profile_group_name() == 'About') ) : ?> 
    					
    <h4>Testing</h4>
    							
    <?php endif; ?>

    Can anyone suggest how I might target the About group on my site and insert custom HTML?

    Thanks

Viewing 1 replies (of 1 total)
  • Avatar of MakeNice
    MakeNice
    Participant

    @makenice

    Think I have figured out how best to work this. For anyone that may need it sometime the code I used was:

    <?php if ( 1 == bp_get_the_profile_group_id()) : ?>
    				 
    <h4>About Me</h4>
    				
    <?php endif; ?>

    With 1 == the profile tab where I need to add my custom HTML. If anyone has alternative solutions I’m happy to hear them.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.