Expanding Staff Detail Options

Support Area Forums Foundation Expanding Staff Detail Options

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question:
  • Author
    Posts
  • #4860
    Aaron Mattson
    Participant

    Is there a document I can alter to add further options to the staff details? I was able to add LinkedIn option to the Social Media Icons under the Theme Options. Just wondering if I can do the same for the Staff Details. Unfortunately Twitter IDs and Facebook URL’s are not applicable to site I’m using the theme for.

    #4862
    Bill Robbins
    Moderator

    Great question. You can add more options or change the existing ones for the staff section. Since you don’t need the Facebook and Twitter ones, it’s a bit easier to edit than add anyway. Here’s where you’ll need to go.

    1) Go to the appearance section and select edit to open up the theme editor (or use the editor of your choice).
    2) From the list of files on your right, choose fields.php and look down to line 45 for this spot:

    Twitter Username

    and change it to say LinkedIn URL and save your changes.

    3) You’ll need to make the following change on the page-staff.php, single-staff.php and taxonomy-staff-group.php pages. Look for where you see this:

    <?php if(get_post_meta($post->ID, "_twitter", $single = true) != ""){ ?>
    <span class="twitter-link"><a href="http://www.twitter.com/<?php echo get_post_meta($post->ID, "_twitter", TRUE); ?>"> Twitter </a></span>
    <?php } else { ?>
    <?php } ?>

    and replace the Twitter with LinkedIn and save your changes.

    Now you can use the spot that previously was for Twitter for your LinkedIN profile URL. If you have any questions, let me know.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Expanding Staff Detail Options’ is closed to new replies.