override Feature image generation process

Posted in: Newsmag
Post count: 46

hi i have a wordpress v4.4.2 site running with newsmag theme v2.2
on each module and on each grid the thumbnail is called of a specific dimension
for eg. 537×360 on big grid, 300×160 on module 1

so if i want to have a same dimension of image thumbnail throughout the site how can i achieve this ?
i.e if i set the feature image for any article it generates the different thumbnails of different sizes and displays the images as per the modules and grids
so i want to show something like this
on module 1 image-300×160.jpg is called instead of that i want original image to be shown but with same dimension

on module 2 image-300×194.jpg is called instead of that i want original image to be shown but with same dimension

this is i want throughout the site
so how can i override the different size thumbnail generation process with my specified size of the image to be generated and shown on the site ?

Post count: 6535

Hi

This is a very complex tack which require many customizations in order to be achieved. The easiest way would be like this:
– define a special thumb in td_config.php with the desired size: http://screencast.com/t/R0P1shKkG Make sure you regenrate your thumbnails after new thumb is defined.
– edit each files which generate the theme’s modules and change the parameter from get_image function with your custom image size: http://screencast.com/t/3g3l9GdVITNA
– scale your images with css such that to be displayed fine on each module/block.

Note that this is a very complex task which require many customizations in theme’s files and also good coding skills are involved in order to complete it. We can’t offer customization services at the moment so if you still need guidance on this or you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you.

Thanks for the message!

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