Skip Navigation

[Résolu] Background Image on View Clickable

This support ticket is created Il y a 3 années et 7 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.

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)

Marqué : 

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

Dernière mise à jour par Jaime Il y a 3 années et 7 mois.

Assisté par: Shane.

Auteur
Publications
#1973497

Tell us what you are trying to do?
I think that's not rocket science, but I can't reach this.
I need to make background images on a View clickable. The images coming from a Toolset Image Field.
I copy my code below:

<a href="[wpv-post-url]">
  <div id="contenedor-foto" class="imagen-fondo" style="background-image: url('[types field='imagen-principal-localizacion' url='true'][/types]');">
  <div class="row">
     <div class="col-sm-12 ">
                  <span class="label-provincia pull-right"> [types field='provincias-localizaciones'][/types]</span>

     </div>
      <div id="titulo-localizacion" class="col-sm-12 titulo-localizacion">
       [wpv-post-link]
         </div>
</div>
  
</div>
 </a>

How can I make all the container clickable?

Is there any documentation that you are following?
Not really. I didn't found anything related.
:/

What is the link to your site?
You can see it working here.
lien caché
The Posts on the bottom of the page should be clickable on the entire image (not only on the post name as is now)

#1973601

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Jaime,

Thank you for getting in touch. I took a look at this for you and found that the HTML being generated on the frontend isn't being wrapped in the anchor tags. This is what is being displayed below.


<a href="<em><u>lien caché</u></em>"></a>

<div id="contenedor-foto" class="imagen-fondo" style="background-image: url('<em><u>lien caché</u></em>');"><a href="<em><u>lien caché</u></em>"></a><div class="row"><a href="<em><u>lien caché</u></em>"><div class="col-sm-12 "> <span class="label-provincia pull-right"> Huelva</span></div></a><div id="titulo-localizacion" class="col-sm-12 titulo-localizacion">

<a href="<em><u>lien caché</u></em>"> </a><a href="<em><u>lien caché</u></em>">Alájar</a></div></div></div></div>

Can you remove this shortcode here and let me know if the entire section becomes clickable [wpv-post-link]

If this doesn't work, could you provide me with admin access to the site so that I can have a more detailed look at this one for you ?

Thanks,
Shane

#1973677

My issue is resolved now. Thank you!

Ce ticket est maintenant fermé. Si vous êtes un client de Toolset et que vous avez besoin d'aide, veuillez ouvrir un nouveau ticket d'assistance