🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

javascript website in visual composer - trying to do a read more/read less button via text html vs visual text editor

Started by
0 comments, last by WinterDragon 2 years, 2 months ago

javascript website in visual composer - trying to do a read more/read less button via text html vs visual text editor

I'm working on my website in wordpress: visual composer.

I'm trying to add a read more/read less button because it's highly text-based. and the important info is at the top.

it's not working I don't want to post all my code here because you don't like that.

I was using code from w3schools html in the text box (instead of visual text editor) where you can see the code of the block. then I added custom css and custom javascript locally both. as it was advised.

some code is actually visible on the page.

and the button isn't doing anything.

for reference the site is at: http://mcbdezwriter.com

code is:

https://www.w3schools.com/howto/howto_js_read_more.asp

it's working better I downloaded a plugin for wordpress but the button doesn't say anything, it's supposed to say “read more” and “read less”

http://polydina.com

This topic is closed to new replies.

Advertisement