Tell us what you are trying to do?
Im trying to create a post grid with search filters , but image size is not working
This is the correct shortcode as generated by the GUI:
<p> [types field='image' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='700' height='350' resize='stretch'][/types]</p>
I think you manually edited the one on your site? Can you regenerate it with the ShortCode generators?
I tested this locally and it is working fine, it should hence as well produce the expected results on your site.
If after inserting it again with the GUI and making sure it is not a compatibility issue (by eventually disabling other software on a testing site), it should work - if not, please let me know.
Yes, but this time you use size="medium", which is a predefined size.
Passing width and height will work when size="custom", as in the generated shortcode example.
Can you try to insert the ShortCode with the GUI, passing custom size, and the width/height, as I show here?
https://toolset.com/forums/topic/image-size/#post-1191408
Please let me know if this works on your install, on mine it produces the expected images sizes.
I deleted the access data as this was public.
I saw on the site, this is in a Loop Item, in a View then displayed in an Elementor post.
That might be a mix that produces issues, I was able to show the correct image if inserting [types field='cover-image' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='700' height='350' proportional='false' resize='proportional'][/types] directly to the loop.
I can look deeper in this issue Tuesday, however, it might be due to Elementor and Content Templates in Views not being fully compliant.
OK, this is a strange and until now, locally not replicable issue.
I tried with Elementor creating the post, and inserting the View there, with a Content Template within the Views loop, just as it is made on your example.
Since the access details from the weekend where in public, can you submit new ones, below?
I will (if permitted)
- grab a copy of your site
- deploy it locally
- see where the issue comes from and update you.
Meanwhile, you can put everything within the "loop item" content template directly into the view's loop (determined by <wpv-loop> tags.)
That will solve the issue, but it still requires the analysis to decide whether this is expected or not.
If you already have a duplicate, you can also just attach it in the next reply, otherwise, please allow me to copy the site if possible.
Thank you
What taxonomy View do you mean?
This thread is about "Image Sizes" not working on a view styled with Elementor and that's only confirmed on the site you shared.
I have provided a solution for that and would like to see into that issue closer, locally.
For this, I'll need what I mentioned here:
https://toolset.com/forums/topic/image-size/#post-1192363
Please read the message carefully as it requests to add content to the site you shared (and new access details).
However if that's not possible, I can also work with a copy of the site:
https://toolset.com/faq/provide-supporters-copy-site/
My issue is resolved now. Thank you!