Skip Navigation

[Resolved] image field width

This support ticket is created 5 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by guyH 5 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1319265

Tell us what you are trying to do? Trying to display an image field with 100% width. This is what i tried, but didn't work:
{!{types field='photo' size='custom' width='100%' height='300'}!}{!{/types}!}

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site? dev.freespiritway.com/upcoming-events

#1319433

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2019-08-19 at 2.40.04 PM.png

Hi Guy,

Thank you for getting in touch.

Unfortunately this is not how this field works, you're not able to specify percentages here. Instead you will need to use css if you want the image to display with 100% width.

But the main problem here is your containers. Though your image is at 100%, it is at 100% of the container that its immediately in. So if you want it to extend the full width you will need to adjust the width of all the other containers that the image is within. See Screenshot

Thanks,
Shane

#1321295

My issue is resolved now. Thank you!
Thanks Shane, I did resolve it with CSS. Just wanted to make sure there wasn't a better way. Thanks for the extra info about parent containers.