Announcement

Collapse
No announcement yet.

What controls "Read More" in Category Descriptions?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What controls "Read More" in Category Descriptions?

    HI All,
    I am trying to discover what controls "Read More" in Category Descriptions. After what line does it automatically kick in? How is this controlled? It acts differently between my Dev site and my Live store.

    I would actually like to suppress it, if possible.

    Thanks!

    #2
    The "Read More" link is controlled though a function in the plugins.js file which is initiated in scripts.js with the following code:
    Code:
                $('.js-read-more').readmore({
                    speed: 75,
                    moreLink: '<a href="#" class="js-read-more-toggle read-more-toggle">... read more</a>',
                    lessLink: '<a href="#" class="js-read-more-toggle read-less-toggle">read less</a>',
                    collapsedHeight: 67,
                    embedCSS: false
                });
    If you wish to remove this functionality, you can either remove the call in scripts.js or remove the 'js-read-more' class from the category header code.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment

    Working...
    X