• 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

Size of featured images on CPT pages

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 › Size of featured images on CPT pages

This topic is: not resolved

Tagged: CPTs, featured image, images sizes

  • This topic has 7 replies, 3 voices, and was last updated 11 years, 1 month ago by Genesis Developer.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • August 8, 2014 at 9:28 pm #117858
    varshasalvi
    Member

    Hi ,
    I am using 2 CPTS for Portfolio and art-gallery page . However the size of the featured images on both the pages appears different ! I am using the same image for both.
    I have double checked the CSS couple of times to see if the padding and margins are the same.
    Dont know where I am going wrong. Can someone help?
    http://designforsoul.com/art-gallery/
    http://designforsoul.com/portfolio/

    the add image sizes in functions.php is also the same.
    add_image_size( 'portfolio', 300, 300, TRUE );
    add_image_size( 'art-gallery', 300, 300, TRUE );
    Thanks.

    http://designforsoul.com
    August 8, 2014 at 9:55 pm #117864
    Genesis Developer
    Member

    When I am looking portfolio page, the images are not resizing to 300x300. But Gallery page is fine. But Executive PRO theme have this code add_image_size( 'portfolio', 300, 200, TRUE );in functions.php file. Are you changed the value from 200 to 300? Double check your functions.php file & archive-portfolio.php file.


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    August 8, 2014 at 10:04 pm #117865
    ᴅᴀᴠɪᴅ
    Member

    As well as adding the image size as you have, you also need to make sure this is the image size which is used in the portfolio archive template. It is currently pulling up the 237x158 size. So you need to replace it.

    If you have already done that, then it could be that you just need to use regenerate thumbnails. to generate the 300x300 versions of all your images.


    I love helping creative entrepreneurs build epic things with WP & Genesis.

    Follow on Twitter

    August 8, 2014 at 10:17 pm #117870
    Genesis Developer
    Member

    I checked the image size using firebug. 300x300 images are on the server and do not need the regenerate thumbnails plugin. There have some gap in the code. For that reason all images are getting 237?—158 size.


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    August 9, 2014 at 1:37 pm #117971
    varshasalvi
    Member

    Thank you for that analysis. Any idea on what could be going wrong? I dont know php programming well 🙁 Trying to debug this !

    August 9, 2014 at 1:41 pm #117974
    Genesis Developer
    Member

    without see the php code I can't give the right step.


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    August 9, 2014 at 1:43 pm #117975
    varshasalvi
    Member

    Is there anyway I can share the code ?

    August 9, 2014 at 1:46 pm #117978
    Genesis Developer
    Member

    You can use pastebin.com or github


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 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