• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How can I add Category thumbnails to archive page?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How can I add Category thumbnails to archive page?

This topic is: not resolved

Tagged: category archive

  • This topic has 3 replies, 3 voices, and was last updated 11 years, 5 months ago by Scott.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 7, 2013 at 4:36 am #39685
    svartkjel
    Member

    I'm trying to add a category thumbnail, similar to featured image in post or page. The thumbnail will be used togther with Title and description for category archive.

    So, I'm wondering if there is an easy way to do this with genesis.

    1. I would like to get something similar to the "set featured image" on  Category edit page.

    2. Is there a hook or filter I can use so the category thumbnail is outputed together with title and description on category archive? Also, How would I go about to filter the Title and description of category archive so the show up on all page and not only page one of the category archive?

     

    May 7, 2013 at 4:50 am #39686
    Brad Dalton
    Participant

    Its all managed in the Genesis > Theme Settings > Content Archives


    Tutorials for StudioPress Themes.

    May 7, 2013 at 5:47 am #39691
    svartkjel
    Member

    No, thumbnail and content of posts shown in category archive is managed in Genesis > Theme Settings > Content Archives.

    Title and intro/decription of  category (shown before posts on most child themes if in use) is handled in the Edit Category page. This function is located in Genesis -> lib -> structure -> archive.php as "function genesis_do_taxonomy_title_description()"

    So the question is how to be able to choose a featured image for a category, and then how to use a hook/filter to show it together with title and description before the loop.

    February 16, 2014 at 5:55 pm #90666
    Scott
    Member

    Check out the "genesis taxonomy images" plugin. Once you have it installed, it adds a "Thumbnail" image uploader to your category edit screen as well as a thumbnail preview column to your category manager listing.

    You'll also need to add a filter to your child theme's functions.php like so:

    /**
     * Add Genesis Taxonomy Image to Archive Description box
     *
     * Genesis hooks wpautop to the same 'genesis_term_intro_text_output' filter, therefore:
     * - to display IMG and text in same <p> tag, ensure that this function is hooked with priority < 10
     * - to display IMG outside of <p> tag added to text, ensure that this function is hooked with priority 10 or higher
     *
     */
    add_filter( 'genesis_term_intro_text_output', 'your_category_thumbnail', 9 );
    
    function your_category_thumbnail( $text ) {
    
    	$image = gtaxi_get_taxonomy_image();
    	return $image . $text ;
    
    }
    
  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble