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?
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
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 | 193 | 2 months ago | ||
| 3 | 90 | 2 months ago | ||
| 11 | 449 | 3 months ago | ||
| 0 | 43 | 3 months ago | ||
| 5 | 123 | 3 months ago |