Hi,
Im new with GRAV, I have a question for themes: so I want to use theme1 for the most part of the pages in the website (frontpage, contact, blog, etc), but for the Manual/Docs link I want to use the Learn2 theme is this possible? how can I do that?
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Themes & Styling
@mlacunza Just a wild guess....
A theme/plugin can use the Asset Manager to addCss and removeCss. Maybe, by checking the url requested by the user, you can add/remove css depending on the url.
Never tried it, but it might be doable...
Some pseudocode:
PHP
$path = $this->grav['uri']->path();
if ($path startswith '/docs') {
// addCss('my docs css file');
} else {
// addCss('my regular css file');
}
Again, never tried it, but this comes first to mind...
Thanks! but I found this plugin: Themer
and is not that what I have done?
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 4 | 195 | 2 months ago | ||
| 3 | 91 | 2 months ago | ||
| 11 | 451 | 3 months ago | ||
| 0 | 45 | 3 months ago | ||
| 5 | 125 | 3 months ago |