Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

121
Views
Truncar el texto de descripción de la colección en Shopify

Estoy tratando de agregar los botones "Leer más" y "Leer menos" a las descripciones de las colecciones en la tienda Shopify. ¿Cómo puedo agregar Html con condiciones líquidas? Actualmente, {{ collection.description }} es lo único en la plantilla collection.description. El HTML funciona perfectamente en el escaparate, pero ¿cómo puedo agregar HTML con objetos líquidos?

 ... <p>text before Read More<span id="dots">...</span><span id="more">&nbsp;the remaining description</span></p> <button id="myBtn" onclick="myFunction()">Read more</button> <script> function myFunction() { var dots = document.getElementById("dots"); var moreText = document.getElementById("more"); var btnText = document.getElementById("myBtn"); if (dots.style.display === "none") { dots.style.display = "inline"; btnText.innerHTML = "Read more"; moreText.style.display = "none"; } else { dots.style.display = "none"; btnText.innerHTML = "Read less"; moreText.style.display = "inline"; } } </script> ...
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!