Home Forums WoodMart support forum Read More Button

Read More Button

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #308660

    newK9
    Participant

    Hi Xtemos,

    I’ve in the process of updating my site and currently using a test site.

    When upgrading my site to the latest version of the theme, I’m having issues with the read more function.

    Currently the wordpress read more option doesn’t work or the JS code for a read more button which currently works on my existing live site.

    Could you please point me to why this isn’t currently working?

    #308677

    Hello,

    Please provide the admin panel login details of the test website to check it myself and help you out accordingly.

    Best Regards

    #308738

    newK9
    Participant

    Hi Aizaz,

    Thank you for coming back to me. Details supplied below.

    #308782

    Hello,

    I have visited both of your websites.

    The JS code for the button is different between the two websites.

    This one doesn’t work https://gyazo.com/118b495b601c073562fb0cc0462d6871

    This one works https://gyazo.com/ff2da5ed2aaed772f3c42e27e6c31778

    Please make sure that you are using the same code that is working in the testing site then check back.

    Best Regards.

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

    Hello,

    Please read my previous reply carefully. The issue is from the button link code you are using to display the button.

    This one doesn’t work https://gyazo.com/118b495b601c073562fb0cc0462d6871

    This one works https://gyazo.com/ff2da5ed2aaed772f3c42e27e6c31778

    Please make sure that you are using the same code that is working in the testing site then check back.

    Best Regards.

Viewing 6 posts - 1 through 6 (of 6 total)