Adaptable Theme : how to custom font/size course title

Adaptable Theme : how to custom font/size course title

by Nabil B. -
Number of replies: 6

Hello,

I would like to adjust my course title in my frontpage when I use Coventry course presentation.

Now, I have : "sens de la vie et sens ..."

I would like to have : "sens de la vie et sens du travail"

To do that, I may modify the font size. But I don't know where.

Moodle version : 3.4.1 and Adaptable Theme version : 1.6.1


Thanks for your reply.

Nabil

Attachment 2018-03-13 - Adaptable Theme - Coventry Size Course Title.png
Average of ratings: -
In reply to Nabil B.

Re: Adaptable Theme : how to custom font/size course title

by Fernando Acedo -
Picture of Plugin developers Picture of Testers

This course style is the default, not Coventry.

Course title length depends of screen width. It is configured using CSS so you can overwrite it:

.coursebox.panel.hover .panel-body .coursebox-content h3 {
    overflow: hidden;
    text-overflow: ellipsis;
}

 
Modify these selectors until get the desired text. Notice that the changes will be applied to all the course boxes.

 

In reply to Fernando Acedo

Re: Adaptable Theme : how to custom font/size course title

by Nabil B. -

I don't know CSS programming but I will see how it works.

Thanks.

In reply to Fernando Acedo

Re: Adaptable Theme : how to custom font/size course title

by Nabil B. -

My solution based on your indications :

.coursebox-content h3 a {
font-size: 11px;
}

My titles are showed now completely.

Thanks.


In reply to Nabil B.

Re: Adaptable Theme : how to custom font/size course title

by Jez H -

Hi Nabil,

You should not have needed to do anything with css as there are settings to control the size and padding of the font used and another setting "coursetitlemaxwidth" under the "header" settings page that allows you to control the length of the title, altering those settings could have done what you desired.

The reason for these settings is that on larger sites there can be very long course titles which then spill and make a mess of hte header, these settings allow you to avoid that.

Average of ratings: Useful (1)
In reply to Jez H

Re: Adaptable Theme : how to custom font/size course title

by Melanie Auckland -

Thanks, I also had a problem with customizing moodle. Now it looks fine. No everything in this software is intuitive, at least from my point of view. But it's great that there is a chance to ask and get help.

Regards,

Mel

Average of ratings: Useful (1)
In reply to Jez H

Re: Adaptable Theme : how to custom font/size course title

by Nabil B. -

Hi Jez,

Thank you for your reply.

coursetitlemaxwidth is for the header title length.

There is no effect for the title inside a course presentation box (like Coventry).

The css is mandatory to do that, in my comprehension.