Hello,
is there any possiblity to make the thumbnail of block 14 square?
Thank you!
Simon
Hi
Theme’s thumbs have fixed sizes. In order to change the size you need to register a new thumb in td_config.php file using theme’s api: https://forum.tagdiv.com/td_api_blockadd/ – http://screencast.com/t/CzrLP9jqhWS After you register the new thumb it’s necessary to regenerate your thumbnails, more details about this step can be found here: https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/
Hope this help.
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hey,
thanks! And what must I add for a square thumbnail?
Thank you!
Hi
Sorry, I indicated a wrong link above. In order to register a new thumb please folow tis link: https://forum.tagdiv.com/td_api_thumbadd/ You should add a new thumb with a square format. The thumb should the width and height properties equals, like i this example:
td_api_thumb::add('td_200x200',
array(
'name' => 'td_200x200',
'width' => 200,
'height' => 200,
'crop' => array('center', 'top'),
'post_format_icon_size' => 'small',
'used_on' => array(
'Module 77', 'Block 77'
)
)
);
Thanks!
Hello,
thank you, perfect! Where must I add the code you postet? In the functions.php?
And where must I add the usage-code: <?php td_api_thumb::add( $id, $params_array ) ?> from the link you postet?
Thank you!
Simon
Hi
I mentioned above that the new thumb must be registered in td_config.php file here: http://screencast.com/t/CzrLP9jqhWS
Please consider that this is a complex task which require many customizations and for the moment we cannot offer any type of custom work. If you can’t do this by yourself my advice is to look for someone to help you or hire a freelancer from sites like http://studio.envato.com/ to do it for you.
Thanks!
Hey,
is td-config.php child-theme ready? Otherwise there would be no oppurtunity to change the thumb without doing after every theme update a manual editing.
Thanks!
Hi
Unfortunately the td-config.php file can’t be moved in child theme at the moment. You can check the file which can be moved in child theme in our documentation: https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thanks!