The Elearning Community • How to delete the button READ ALL ?
Page 1 of 1

How to delete the button READ ALL ?

Posted: Mon Sep 24, 2018 5:57 pm
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

Re: How to delete the button READ ALL ?

Posted: Tue Sep 25, 2018 8:00 am
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="https://forum.formalms.org/forums/topic/13110.html?view=print#">
            {{ 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>

Re: How to delete the button READ ALL ?

Posted: Tue Sep 25, 2018 9:21 am
by gihel
thank you alfa