• 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

Post images

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 › Post images

This topic is: resolved
  • This topic has 5 replies, 3 voices, and was last updated 12 years, 8 months ago by tribalcafe.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • November 16, 2012 at 5:52 am #277
    tribalcafe
    Member

    Hi,

    I am working on my own site http://www.garyfox.co.uk and wondered if there is any tips available for this problem I am having:

    added code to display post images on blog above post info and content

    /** Remove default post image */
    remove_action( 'genesis_post_content', 'genesis_do_post_image' );

    /** Add custom post image above post title */
    add_action( 'genesis_before_post_content', 'generate_post_image', 5 );
    function generate_post_image() {

    if ( is_page() || ! genesis_get_option( 'content_archive_thumbnail' ) )
    return;

    if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
    printf( '<a href="%s" rel="bookmark"><img class="post-image" src="%s" alt="%s" /></a>', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    }

    }

    BUT homepage now has two post images instead of one. Any ideas on how to remove / change that.

    If you hadn't guessed already I am a novice but desperately trying to learn!

    Best

    Gary

     

    November 16, 2012 at 6:47 am #279
    Andrea Rennick
    Member

    Under Genesis -> Settings -> Content Archives, do you have the box checked to show thumbnails on archives pages? If so, uncheck it.


    **forum signature**
    If you need technical support for your theme please file a ticket.

    The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.

    November 16, 2012 at 10:31 am #327
    Rajtilak
    Member

    Hi Andrea,

    How do I setup my Balance theme posts to be like Brian's? If you see, the home page of the blog only contains post excerpts but not the pictures inside the post, even though the picture is well inside the post excerpt. What I want to do for my website is that on the home page the posts would have a thumbnail (not necessarily the one on the post) and a little excerpt (which may or may not be a part of the post).

    I know this might actually sound lame, I am quite new on WordPress. Any help would be highly appreciated.


    Website: TechniColor | Facebook: Rajtilak Bhattacharjee

    November 17, 2012 at 5:23 am #407
    tribalcafe
    Member

    Andrea, you are a star and thank you so much for that it was causing me such problems. Feel such an idiot that it was so simple - still learning !

    thank you

    Gary

    November 17, 2012 at 5:40 am #408
    tribalcafe
    Member

    Andrea,

    Quick update and sorry for the change. It did work on home page but I have lost the featured image in main blog page as well. I will submit a support ticket on this. Any other suggestions welcome.

     

    Gary

    November 17, 2012 at 10:42 am #434
    tribalcafe
    Member

    Brilliant I simply changed the following

    'grid_image_size' => 'grid-thumbnail', to 'grid_image_size' => 0,

    and it works perfectly

    I love the logic of Genesis it is a great platform

    many thanks

    Gary

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Post images’ is closed to new 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