WP Care Plus

Sharing Is Caring:

Show more Details using Elementor Free

Rate this post

Script

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script type="text/javascript">
var $ = jQuery;
    $(document).ready(function(){
        
    $('.show-more').on('click', function(){
        event.preventDefault()
        $(this).toggleClass('info-hide')
        $(this).closest('.main-card').find('.show-less, .info-text').toggleClass('info-hide')
    })
    
    $('.show-less').on('click', function(){
        event.preventDefault()
        $(this).toggleClass('info-hide')
        $(this).closest('.main-card').find('.show-more, .info-text').toggleClass('info-hide')
    })
    
    })
</script>
<style>
.info-hide{
    display: none;
}
</style>

Template Link

Show more Details using Elementor Free – Readymade Elementor Templates | WP Care Plus

Watch the Tutorial on Instagram

Sharing Is Caring:

Leave a Comment