How to delete the button READ ALL ?

Backend functionalities: user management, course management, reports, certificates, etc.
Post Reply
gihel
FormaLms User
Posts: 76
Joined: Tue Jun 26, 2018 4:36 pm
Version: forma.lms 2.0

How to delete the button READ ALL ?

Post by gihel »

Hi every body

I have no text to see with the READ ALL button on the login page.
I would like hide or delete the button

Anyone know the solution ?

Thank you
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: How to delete the button READ ALL ?

Post by alfa24 »

Hi,
you should search in:

/templates/standard/layout/appCore/homepage/show.html.twig

and get rid of those snippets:

Code: Select all

<div class="collapse-wrapper" data-toggle="collapse" data-target="#description">
        <a class="forma-button forma-button--orange is-hidden js-show-collapsed-text" href="#">
            {{ read_all|raw }}
        </a>
        <span class="glyphicon glyphicon-remove icon icon--close">{{ close|raw }}</span>
        <br/><br/>
    </div>
and further:

Code: Select all

<script>
    $(document).ready(function () {
        var $elem = $('.js-collapsed-text');
        var _textHeight = $elem.children('p').height();
        var _containerHeight = $elem.height();
        var $btn = $('.js-show-collapsed-text');

        if (_textHeight > _containerHeight) {
            $btn.removeClass('is-hidden');
        }
    });
</script>
Per supporto GRATUITO contattatemi in privato qui
gihel
FormaLms User
Posts: 76
Joined: Tue Jun 26, 2018 4:36 pm
Version: forma.lms 2.0

Re: How to delete the button READ ALL ?

Post by gihel »

thank you alfa
Post Reply