Skip Navigation

[Resolved] Reply to ticket regarding image sizing – FAO Minesh

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 3 months ago.

Assisted by: Minesh.

Author
Posts
#2749239
Screenshot 2024-09-19 095708.png

Hi

Thanks for getting back to me, I tried to get round the image issue by trying to change the HTML and added the following code fixed and using a short code -
[tb-dynamic-container provider='__current_post' source='media-featured-image-data' field='' removeDeadLinkTarget="true"]
<figure class="wp-block-image tb-image tb-image-dynamic tb-image-frame-none" data-toolset-blocks-image="1">
<img src="[tb-dynamic%20provider='__current_post'%20post='current'%20source='media-featured-image-data'%20size='fixed'%20width='580'%20height='280'%20crop='true'%20force-string='first'%20]" class="%%tb-image-wp-image-class%%" alt="[tb-dynamic%20provider='__current_post'%20post='current'%20source='media-featured-image-data'%20size='fixed'%20width='580'%20height='280'%20crop='true'%20force-string='first'%20]">
</figure>[/tb-dynamic-container]

its still not perfect and I would prefer to use the method in your screen shot but that is not available. This is the options if i return to inserting a Toolset Image block ( see attachment)

I was unable to reply to the ticket as you required admin rights which I am not authorised to give you.

I will need to speak to my team regarding access to the site, we can possibly give assess to a staging site but is there anything else I can try before we explore that avenue?

#2749258

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

The way you used the code, you should not use like that. Maybe you should try to add "Fields and Text" block and switch to "Text" mode of "Fields and Text" block and add the types shortcode to display the image.

For example:

[wpv-post-featured-image size='custom' width='300' height='200']
 
[wpv-post-featured-image size='custom' width='300' height='200' crop='true' crop_horizontal='right' crop_vertical='bottom']

- You can use the desired shortcode example from above and set your desired width and height.

More info:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153425

If the above workaround does not work then:

I can offer you sandbox site if require where you can setup the test case with test featured image uploaded to sandbox site and I will look at it and try to guide you in the right direction.