I’m using 1.4.0-beta.3 and the new Quark theme, and having issues with theme inheritance. It doesn’t seem to inherit the quark theme after following the directions for setting up an inherited theme (https://learn.getgrav.org/themes/customization).
Are there new steps that need to be followed for this?
I didn’t use devtools, so they are ordered correctly, I think. I just found duplicate lines of code under a theme.yaml file in users/config/themes/. I removed it and it’s working but does not inherit any of the page classes from Quark.
For now, I’ll stick with an older theme for the inheritance.
Got the same problem, and even with this fix it does not change , i still have a blank html with only my content but not the style. I was with antimatter before and want to switch my inheritance to quark. I tried to put directly quark and it’s working.
Here is my mytheme.php :
<?php
namespace Grav\Theme;
use Grav\Common\Theme;
// class Mytheme extends Antimatter
class Mytheme extends Quark
{
// Some new methods, properties etc.
}
?>
I try to name mytheme by another name, let’s bob
I thought I simply have to replace every mytheme by bob but apparently I miss a detail because when I switch to bob Grav give me this error : Template “@images/grav-logo.svg” is not defined in “partials/base.html.twig” at line 44.
so inside ./theme/bob I have blueprint.yaml which contain :
name: bob
version: 1.0.0
description: "Extending Quark"
icon: microchip
It doesn’t work for me. I’ve used both @paulhibbitts mytheme.php and your suggestion to include quark.yaml in mytheme.yaml. But still an error: Template "modular.html.twig" is not defined..
How come this doesn’t work? While the documentation and the solutions point to a working solution. Did something change with Grav 1.6.4? I never tried this with older releases.
@paulhibbitts well spotted! That was from yesterday, I was trying the same thing with different themes. I’ve changed that critical detail with the already present mytheme.php. It somewhat works now. I don’t get the error anymore, but the theme doesn’t look the same as loading vanilla theme.
Website with vanilla theme and the website with inheritance (but without any modifications). However, the grav-logo.svg and favicon.svg should replace the standard Grav logo’s, this is not the case at the moment. It’s a modular page in those screenshots.
Could it be that this theme not yet fully ready for inheritance? Since the mytheme.php also seems to be a quick fix.
EDIT: After loading the theme again, it seems to work! However, the icons are still unchanged. But will check this out in more detail. For now it seems okay. Thanks!