WordPress.org

Ready to get started?Download WordPress

Forums

Our Team by WooThemes
[resolved] Team Member Template (11 posts)

  1. mazecreative
    Member
    Posted 8 months ago #

    Great plugin!

    How do I change the template that the individual team member profile is set in though? I would like to create a custom template for it if possible.

    Thanks,
    Mat

    http://wordpress.org/plugins/our-team-by-woothemes/

  2. jameskoster
    Member
    Plugin Author

    Posted 8 months ago #

    You can use the woothemes_our_team_item_template filter to do this.

    The default template looks like this: <div itemscope itemtype="http://schema.org/Person" class="%%CLASS%%">%%AVATAR%% %%TITLE%% <div id="team-member-%%ID%%" class="team-member-text" itemprop="description">%%TEXT%% %%AUTHOR%%</div></div>

  3. mazecreative
    Member
    Posted 8 months ago #

    Thanks for the prompt response, James.

    Could you explain in a bit more detail how I can use the filter to create a template?

    Also, I'm using another plugin (Showbiz Pro) to display each team member in a slider. The plugin allows me to create a HTML template for the slider and you can see it up here: http://dev.mazecreative.co.uk/hornbill/?page_id=5656 under Meet The Team. I'm trying to get the role field to display under the name but the slider template only accepts HTML, is there a shortcode I could use to display the role?

    Thanks

  4. mazecreative
    Member
    Posted 8 months ago #

    I still can't work out how to get the default member profile template, it' s just showing like this for me http://dev.mazecreative.co.uk/hornbill/?team-member=mathew-mayes

  5. stode
    Member
    Posted 6 months ago #

    Thanks for the info jameskoster. Very helpful. I'd suggest adding the info to the readme file.

  6. Amber
    Member
    Posted 6 months ago #

    Just in case anyone is still unsure, modifying the template can be done by adding something like this to your functions.php:

    add_filter( 'woothemes_our_team_item_template', 'new_team_member_template' );
    
    function new_team_member_template( $tpl ) {
    	$tpl = '<div itemscope itemtype="http://schema.org/Person" class="%%CLASS%%">%%TITLE%% %%AVATAR%% <div id="team-member-%%ID%%"  class="team-member-text" itemprop="description">%%TEXT%% %%AUTHOR%%</div></div>';
        return $tpl;
    }

    * The above snippet simply moves the title (name/title) above the avatar/featured image.

  7. kevinwasie
    Member
    Posted 6 months ago #

    Hi. I have added the following to functions.php, and this still does not work. I am trying to remove the Author section under the team member post.

    add_filter( 'woothemes_our_team_item_template', 'new_team_member_template' );

    function new_team_member_template( $tpl ) {
    $tpl = '<div itemscope itemtype="http://schema.org/Person" class="%%CLASS%%">%%AVATAR%% %%TITLE%% <div id="team-member-%%ID%%" class="team-member-text" itemprop="description">%%TEXT%%</div></div>';
    return $tpl;
    }

    Any ideas?

  8. Amber
    Member
    Posted 6 months ago #

    Hey kevinwasie,

    You shouldn't need to modify the template layout above to achieve your goal. On the "Other Notes" tab here in the repository there is a section that lists all the arguments that can be used with the shortcode or template tag. I believe the one that you're looking for is:

    'display_author' => true (whether or not to display the author information)

    so change your shortcode to something like:

    [woothemes_our_team limit="10" size="100" display_author="false"]

  9. kevinwasie
    Member
    Posted 6 months ago #

    I thought that would work also, but it did not. The only thing that appears to do is remove the team members name from the initial team page (/team). It does not effect anything inside the individual "team-member" page (/team-member/kevin).

  10. Amber
    Member
    Posted 6 months ago #

    Oh I see, you were talking about the individual team member post, not the content that the shortcode/template tag returns; sorry for the confusion. :)

    You won't need to make changes to the shortcode or use the function above. The styles for the inner team pages (i.e. /team-member/kevin) are being controlled by your theme's single.php file.

    Duplicate the single.php file in your theme and then rename the duplicate to single-team-member.php (team-member being the plugins post type); you should then be able to open that file and remove the portion that would display author content on the individual team member posts.

    Upload the newly created single-team-member.php file to your theme/child theme directory and you should be good to go.

  11. movieme
    Member
    Posted 5 months ago #

    I'm loving the Team Member template but as many times as I've tried my spacing is off and I'm missing some of the grey lines that separate the team members. Here's a look --> http://movieme.co/?p=575

Reply

You must log in to post.

About this Plugin

About this Topic