Support › Forums › Flex Theme › Reduce different image sizes
- This topic has 9 replies, 2 voices, and was last updated 5 years, 3 months ago by
Davinder Singh Kanith.
-
AuthorPosts
-
September 10, 2015 at 1:07 pm #545
Joseph
ParticipantHi…
Would it be possible to reduce different image sizes? May be kind of responsive image instead of creating too many copies. Eg. Images of JetPack’ Related Posts and Top Posts & Pagesadd_image_size( 'featured-75', 75, 75, true ); add_image_size( 'featured-150', 150, 150, true ); add_image_size( 'img-1-column', 695, 365, true ); add_image_size( 'img-2-columns', 528, 285, true ); add_image_size( 'img-3-columns', 345, 185, true ); add_image_size( 'img-4-columns', 252, 145, true ); add_image_size( 'box-slider', 1080, 550, true ); add_image_size( 'full-width', 1900, 550, true );
For hosting concern, every image is counted as one inode file. Even the WP official recommend hosting company, Bluehost, offers only 50,000 inodes per cPanel account on their shared server.
Regards
September 10, 2015 at 1:16 pm #546Davinder Singh Kanith
ModeratorYou may remove image sizes as per requirement. Keep bigger size and it should resize automatically.
Note, whenever you upload an image – it is generated only once. This theme does not use timthumb script that generate images in real time causing strain on server resources.
September 11, 2015 at 2:03 am #549Joseph
ParticipantI meant it creates several image sizes in the cPanel screenshot: http://prntscr.com/8ey1x3 So I command out with this code
//* add_image_size
but the image appear as full size now http://prntscr.com/8ez46lThe other problem is: I try to create tag menu called “flex” http://prntscr.com/8ez3ol and I have set 300×200 thumbnail size in my Setting >>> Media. But the flex menu doesn’t show the thumbnail, instead it is showing full size. Do I need to create specific template for tag menu?
Regards,
September 11, 2015 at 2:36 am #551Davinder Singh Kanith
ModeratorIf you remove specific image size, that won’t be available for future images. It will switch to full sized image – what is the issue in this regard?
When you change image sizes and want that reflect on live site – you need to regenerate all thumbnails. You can use this plugin for it – https://wordpress.org/plugins/regenerate-thumbnails/
September 11, 2015 at 3:34 am #553Joseph
ParticipantHi Davinder,
Nevermind for the image sizes. But how about the tag menu? Can you add a sample tag menu to the demo?I don’t have problem with the StudioPress theme for tag menu.
September 11, 2015 at 5:35 am #554Davinder Singh Kanith
ModeratorHere is the one tag page – http://demo.simpleprothemes.com/flex/agency/tag/genesis/
What problem are you encountering with this?
September 11, 2015 at 5:58 am #555Joseph
ParticipantI try to create tag menu http://prntscr.com/8ez3ol but the thumbnail image doesn’t show as 300×200 which is set at Setting >>> Media.
September 11, 2015 at 6:00 am #556Davinder Singh Kanith
ModeratorIt will only show image in new selected size if you run thumbnail regeneration on images. Also, you need to set that image size in Genesis settings (Genesis > Theme Settings > Content Archives section)
September 28, 2015 at 1:03 pm #587Joseph
ParticipantHi Davinder,
I try to replicate the homepage setup using the Genesis Featured Page. I disable all the image sizes from functions.php, and set only one image size at WP setting 300×200Then I choose that image but it doesn’t appear the image. See screenshot:
http://prntscr.com/8lefgh
http://prntscr.com/8leh98Can you please check what could be the reason?
September 28, 2015 at 1:21 pm #589Davinder Singh Kanith
Moderator1. Make sure, each page has image uploaded to “featured image” section (middle right location of editor page).
2. Run regenerate thumbnails plugin or upload fresh image via “features image” section for those pages.
P.S. Also, instead of theme customizer, go directly to widgets section and save changes there.
-
AuthorPosts
- You must be logged in to reply to this topic.