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 https://getgrav.org/downloads/
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.twigtoyourtheme/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.
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 4 | 221 | 3 weeks ago | ||
| 4 | 490 | 2 months ago | ||
| 3 | 261 | 3 months ago | ||
| 11 | 646 | 3 months ago | ||
| 0 | 201 | 3 months ago |