Community Forums › Forums › Archived Forums › Design Tips and Tricks › Size of featured images on CPT pages
Tagged: CPTs, featured image, images sizes
- This topic has 7 replies, 3 voices, and was last updated 11 years, 3 months ago by
Genesis Developer.
-
AuthorPosts
-
August 8, 2014 at 9:28 pm #117858
varshasalvi
MemberHi ,
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.
http://designforsoul.com
add_image_size( 'portfolio', 300, 300, TRUE );
add_image_size( 'art-gallery', 300, 300, TRUE );
Thanks.August 8, 2014 at 9:55 pm #117864Genesis Developer
MemberWhen 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.
August 8, 2014 at 10:04 pm #117865ᴅᴀᴠɪᴅ
MemberAs 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.
August 8, 2014 at 10:17 pm #117870Genesis Developer
MemberI 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.
August 9, 2014 at 1:37 pm #117971varshasalvi
MemberThank 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 #117974Genesis Developer
Memberwithout see the php code I can't give the right step.
August 9, 2014 at 1:43 pm #117975varshasalvi
MemberIs there anyway I can share the code ?
August 9, 2014 at 1:46 pm #117978Genesis Developer
MemberYou can use pastebin.com or github
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.