Missing foto in the "staff-section"

Support Area Forums Agency Missing foto in the "staff-section"

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question:
  • Author
    Posts
  • #11761
    Avatar photoE. Klaubert
    Participant

    Hi!
    I’m working the first time with your theme… 😉
    I can’t define the top picture for the staff-area. On other sites, I define it as “featured foto to the article” – but here I have to use it for the staff-fotos. Therefore there is a difference to all the other sites.

    That works: http://www.wev-shg.de/?page_id=34
    This not: http://www.wev-shg.de/?staff-group=technik
    And this is yours: http://www.organizedthemes.com/demo/agency/staff/

    Thanks!
    Epi

    #11765
    Bill Robbins
    Moderator

    Epi,

    Thank you for your business first of all. Good question too. For archives like categories, tags, dates, and things like our staff groups, WordPress doesn’t have a “featured image” function like it does for pages and posts. Personally I would love for that ability to make it into the core. After all, you can add descriptions so why not an image too?

    That said, if you only need one staff group, then use the page template. You can add in a featured image there that will appear in the header.

    If you need to use more than one staff group and want to have header images for them, you can do that. Here’s how:

    1. Go to the Media section and select Add New.
    2. Upload your file. Once the upload is finished, click edit. On the right hand side of that screen, you’ll see a box for the file URL. Copy that URL.
    3. Next go to the Appearance section and select Edit.
    4. From the list of files on your right, choose media-default.php
    5. Scroll down until you see this:
      
      <?php } else { ?>
      
    6. Right above that paste this:

    7. Then replace the http://yoursite.com/image.jpg with the URL to your image you copied earlier.
    8. Save your changes.

    That will give you an image to use above all your staff groups. If you want to use a separate image for each one, that can be done too. Instead of the code snippet above, use this:

    Then change the technik and other to the name of the staff groups you’ll be using. Then pick a different image URL to use for each one.

    If you have any questions or trouble, let me know.

    Thanks again,
    Bill

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Missing foto in the "staff-section"’ is closed to new replies.