Home Forums WoodMart support forum Read More Button Reply To: Read More Button

#308793

newK9
Participant

Hi Aizaz,

I’ve just checked and both have the exact same JS that is added to the Global Custom JS
in theme settings. Nothing is different.

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";
  }
}