WordPress.org

Ready to get started?Download WordPress

Forums

"Read more | Read less" where to insert JavaScript? (1 post)

  1. asdevargas
    Member
    Posted 1 year ago #

    Hello! I was looking for a read more/read less option for texts contents on pages. I came across this page http://codepen.io/JoshBlackwood/pen/pEwHe which is exactly what I need, but I don't know about Java Script. I follow the instructions about Using Java Script http://codex.wordpress.org/Using_Javascript but I may be doing something wrong, because it doesn't show.
    I uploaded a readmoreless.js file to the themename/js folder and in header.php added <script type="text/javascript" src="/js/readmoreless.js"></script>.
    Also added CSS and code in page. Nothing :(
    Any help would be very much appreciated!! Thank you

Topic Closed

This topic has been closed to new replies.

About this Topic