Thumbnail sizes – unlisted sizes in Image Size select list when edit blocks

Posted in: Newspaper
Post count: 10

Hi tagDiv,

There is a number of thumbnails size already available by default with the NewsPaper theme.
I also add mine with the Theme API.

Here my actual thumbs config in the theme panel.

But when I edit blocks, megamenu … with tagDiv composer, only a few part of this thumb sizes are available in the Image Size settings : here a screenshot.

Maybe I miss something ?

My WP version is 6.0.1 and my NewsPaper version is 11.5.1.

Thanks for your help.

Post count: 21065

Hello @Zelda!

You need to add the new thumbnail size for the flex block too. Edit the td-composer\legacy\Newspaper\includes\td_config.php file and add your new thumbnail size after 4976 line name => variable.

Thank you!

Post count: 10

Thank you @bettina for your quick reply.

Are we agree that it’s a plugin file and a update of plugin will change this file (and loose my modifications) ?

If yes, is there a more elegant way to override this config ? Maybe via a API ?

Post count: 21065

Hello @zelda!

A more elegant method is to override the child theme. You need to take all the code of the flex block 2 from 4386 to 6268 lines, make the changes, and change the word “add” to “update”: https://prnt.sc/sbzdlfUovced

Thank you!

Post count: 10

Hello @bettina,

Thanks for this method. I’m going to try.

About megamenu (in my header), how do the same (add a image size to select list) ?

Post count: 21065

Hello @zelda!

Try it in the same way. Line 44139 of the td-cloud-libraryincludestdb_config.php file contains this one for menu header. 

Thank you!

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