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?
i couldnt find learn4 theme at Downloads | Grav CMS
Hi @phil, sure it’s possible. Have you already managed to install the theme and create an inherited theme?
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.
@phil, regarding the solution (minimal steps):
- copy the
learn4/templates/macros/macros.html.twig
toyourtheme/templates/macros/macros.html.twig
- remove or comment out line 13
- 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.
A post was split to a new topic: Why does one inherit instead of copy a theme