Home › Forums › WoodMart support forum › Read More Button Read More Button This topic has 5 replies, 2 voices, and was last updated 4 years, 2 months ago by Aizaz Imtiaz Awan. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts July 25, 2021 at 11:55 pm #308660 newK9Participant 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? July 26, 2021 at 6:16 am #308677 Aizaz Imtiaz AwanKeymaster Hello, Please provide the admin panel login details of the test website to check it myself and help you out accordingly. Best Regards July 26, 2021 at 10:13 am #308738 newK9Participant Hi Aizaz, Thank you for coming back to me. Details supplied below. July 26, 2021 at 11:51 am #308782 Aizaz Imtiaz AwanKeymaster 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. July 26, 2021 at 12:24 pm #308793 newK9Participant 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"; } } July 26, 2021 at 12:58 pm #308805 Aizaz Imtiaz AwanKeymaster 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. Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to create new topics. Login / Register