How to delete the title of the lesson on each page (Moodle 2)

How to delete the title of the lesson on each page (Moodle 2)

by FUTTERSACK Michel -
Number of replies: 4

hello

I would not see the title of the lesson on the top of each page of it. Is it possible to specify it in a theme ?

(I browsed a lot of PHP files, but it's too huge, i didn't manage to find the code wich defines the layout of the content of a lesson page)

 

Thanks in advance for your help

Average of ratings: -
In reply to FUTTERSACK Michel

Re: How to delete the title of the lesson on each page (Moodle 2)

by Ann Adamcik -

Try adding the following to your theme's stylesheet -

.path-mod-lesson h2.main {display: none;}

Average of ratings: Useful (1)
In reply to Ann Adamcik

Re: How to delete the title of the lesson on each page (Moodle 2)

by FUTTERSACK Michel -

Many thanks Ann, YOU ROCK !!!

I added this line in the general.css of my theme and big grin

In reply to FUTTERSACK Michel

Re: How to delete the title of the lesson on each page (Moodle 2)

by Debbie McDonald -

I'm not a coder, I would like to remove the title from the lessons and just include in the content area myself. Subtitles is used for Left Nav so I'd like to leave that. I tried adding this to the styles.css in my splash theme. We are running Moodle 2.2.4 and it did not work.

I wasn't sure how to add to the general.css of theme. It doesn't look like you can just add: 

/**
* No titles on Lessons
**/

.path-mod-lesson h2.main {display: none;}
.path-mod-lesson h3.main {display: none;}

In reply to Debbie McDonald

Re: How to delete the title of the lesson on each page (Moodle 2)

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

@Debbie,

See my answer in this discussion in the Lesson forum.

Joseph

PS.- No need to "cross-post" in the Moodle forums.wink