Customize Post Thumbnail Size

Posted in: Newspaper
Post count: 2

the default post image Thumbnail Size is 218*150px
Can i customize the size, for example, set as 250*150px

Post count: 20688

Hi,

By a theme setting that is not possible, the thumbnail sizes and cropping method are predefined.
If it is a block you are referring to, then you could use a flex block, these have width and height settings for the thumbnail
http://prntscr.com/nqww0f
Maybe you can get the result you want with a flex block.

Be sure to check out some block examples made by us using flex blocks
https://cloud.tagdiv.com/#/load/Blocks
These can be imported with the cloud library plugin – https://forum.tagdiv.com/tagdiv-cloud-library-plugin/

Let me know if you have more questions.
Thanks

Post count: 31

How can we change the theme so that it’s not predefined anymore and aligns the image thumbnail to the left as opposed to center top?

Post count: 20688

So flex blocks are not an option? They have settings for the images, you could load a bigger thumbnail and use the width/height and position settings
http://prntscr.com/nrc77u

Modifying the cropping method would require that you edit the tagDiv composer files (after update 9.7)
The thumbnails are defined here – http://prntscr.com/nrc4yp
Then the future thumbnails will use the new cropping. The existing thumbnails will have to be regenerated, you can use the plugin mentioned here for example
https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/

But I should note that modifications to the plugins will be lost after the theme and plugins are updated.

Post count: 7

Hi Simion!
Do you know if its still possible to edit the tagDiv composer files to make it so the thumbnails don’t crop anymore?
I tried following your screenshot but there must have been an update or something and the files moved because I can’t find init.php anywhere.
Thanks!

Post count: 35449

Hello,

Now the thumbs code can be found in wp-content/plugins/td-composer/legacy/Newspaper/includes/td_config.php -> http://prntscr.com/psluu8

Thank you!

Post count: 7

Thank you Calin. This is exactly what I was looking for 🙂

Post count: 7

Hi Calin, I tried to edit the td_config.php so I could change the cropping for the td_api_thumb for Module 19 to false, however my file manager won’t let me edit it. It says You cannot open this file because it is either a directory or a file larger than one megabyte (1 MB). To edit the file, download it and use a local editor.
I’m scared to mess my website up by downloading and deleting files. Any suggestions?

Post count: 35449

Hi,

There is nothing about you need to be scared, download it and replace the file in theme, also you can keep the old file.

Thank you!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.