Skip Navigation

[Résolu] Dynamic Background image in a View : how to set the image size?

This support ticket is created Il y a 1 année et 9 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par jeanL-2 Il y a 1 année et 8 mois.

Assisté par: Christopher Amirian.

Auteur
Publications
#2553453

Tell us what you are trying to do?

I have a view that presents stays. The presentation of these stays includes a dynamic background based on an image provided through a form. However, the image in the background is always in full size... I would like to adapt its size to avoid the weight being too important. But I can't find the option to do so. What solution do you suggest?

What is the link to your site?
lien caché

#2553519

Christopher Amirian
Supporter

Les langues: Anglais (English )

Screenshot 2023-02-13 at 16.25.23.png

Hi there,

This seems to be more of a styling matter from your theme and CSS.

I checked my browser console and here is the CSS of the background (attached image)

Maybe you change the Aspect Ratio in the CSS code? It's best to ask the theme developer about this.

Thanks.

#2557987

I found the solution using directly the dynamic image short code in css integrated to html using a html block. it works well