Side bar on course page can't be hidden completely

Side bar on course page can't be hidden completely

by Edwin Lynd -
Number of replies: 9

It happens only on course main page, while it's OK if go any activity pages. 

I am using moodle 3.8,  Adaptable theme newest version. 

As attached picture, how can I completely hide the sidebar? 

Attachment Screenshot_20200205_103214.jpg
Average of ratings: -
In reply to Edwin Lynd

Re: Side bar on course page can't be hidden completely

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
You need to remove all the blocks from the sidebar... surely?
In reply to Howard Miller

Re: Side bar on course page can't be hidden completely

by Edwin Lynd -
No,  I mean to hide it into the right side, where only the arrow icon showing out.  

(Edited by Gareth J Barnard - remove signature not in English on an English forum - original submission Wednesday, 5 February 2020, 10:40 AM)

In reply to Edwin Lynd

Re: Side bar on course page can't be hidden completely

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Does the Adaptable theme do that? I have no idea - I don't use it.

Anyway... moving to the Themes forum...
In reply to Howard Miller

Re: Side bar on course page can't be hidden completely

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Ok, I wrote that code.  What version is the newest version?  What course format?  Is Adaptable tabs on and if so, what are the settings?  What custom CSS if any do you have?

In reply to Gareth J Barnard

Re: Side bar on course page can't be hidden completely

by Edwin Lynd -
Hi Gareth J Barnard, 

The adaptale theme version 2.2.2, 
course format button and grid with the same issue, 
Theme tabs off and no custom CSSused. 

--------  --------
: "Gareth J Barnard (via Moodle.org)" <noreply@moodle.org>

Edwin Lynd <>
: Moodle in English: Re: Side bar on course page can't be hidden

(Edited by Gareth J Barnard - Removed personal information and non English characters - original submission Wednesday, 5 February 2020, 2:32 PM)
In reply to Gareth J Barnard

Re: Side bar on course page can't be hidden completely

by Edwin Lynd -
And sorry I should have said clearly,  that the issue is on mobile only. 


(Edited by Gareth J Barnard - remove signature not in English on an English forum - original submission Wednesday, 5 February 2020, 2:41 PM)

In reply to Edwin Lynd

Re: Side bar on course page can't be hidden completely

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Cannot replicate:


Attachment Annotation 2020-02-07 123235.png
In reply to Gareth J Barnard

回复: Re: Side bar on course page can't be hidden completely

by Edwin Lynd -
could you check the demo url here? 
In reply to Edwin Lynd

Re: 回复: Re: Side bar on course page can't be hidden completely

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

In layout/course.php:

$movesidebartofooter

is true, so try the following Custom SCSS please:

@media(max-width: 991px) {
    #block-region-side-post.col-12 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

and let me know.

G