cp-read-more

Find and convet the WordPress <!--more--> read more tag to toggle all content below

Usage no npm install needed!

<script type="module">
  import cpReadMore from 'https://cdn.skypack.dev/cp-read-more';
</script>

README

Content Pilot Read More

Find and convert <!--more--> tag in the WordPress Editor into a button that allows visitor to toggle content visibility.

Install as devDependency

npm install cp-read-more --save-dev

Require JS file in task runner

./node_modules/cp-read-more/cp-read-more.js

Bind to content area

$('.entry-content').cpReadMore();