Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

Modifying the Learn4 Theme

Started by Phil White 12 months ago · 4 replies · 133 views
12 months ago

Is it possible to modify the Learn4 theme to remove the numbering of the top-level items and the checkmarks in the left navigation panel?

12 months ago

I downloaded it from GitHub here. Maybe it has not been released yet. Looks like it is still in development, but it is being used. I have no experience with website coding and am just shooting in the dark. I didn't create a new theme by inheritance. I just copied the Learn4 theme that I downloaded from GitHub into the themes directory. It seems to work OK. I guess I should just switch to the learn2 theme.

last edited 06/26/25 by Phil White
12 months ago

@phil, regarding the solution (minimal steps):

  1. copy the learn4/templates/macros/macros.html.twig to yourtheme/templates/macros/macros.html.twig
  2. remove or comment out line 13
  3. do the same for <b>{% if data_level == 0 %}{{ loop.index }}. {% endif %}</b> in line 14

As already mentioned, the recommended approach is to make changes to the inherited theme. And yes, the Learn4 theme is a testing release, but since it's used on learn.getgrav.org, that would be enough for me to try it out.

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 193 2 months ago
Themes & Styling · by Ian, 2 months ago
3 90 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 449 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 44 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 123 3 months ago