I have installed devtools in the root of my site MAMP/htdocs/pnhbquark.
Then bin/plugin devtools new-theme
Answered questions.
Now stuck on Please choose an option
[pure-blank ] Basic Theme using Pure.css
[inheritence] Inherit from another theme
[copy ] Copy another theme
Everything I try is invalid. Tried “inheritance”, 1, 0. Tried clicking on “inheritance”.
Am I missing something obvious?
I want my theme to be like quark, replacing a few templates. Should I start with a blank and put just my revised and new templates in the new the theme?
@normawhite I don’t know the root cause of your issue, but to get you going in the meantime, you might want to have a look at the tutorial Theme Inheritance.
Inheriting a theme by hand is really, really simple… Reading the procedure takes a minute and doing the cut and paste another one…
But don’t forget to replace “mytheme” and “antimatter” during the cut & paste or it might take a bit longer…
I was following the manual just fine until the choice of empty, inherit. There the manual showed that I could enter 0. the response to either was simply “invalid”, followed by a repeat of the options.
I have successfully followed the advice in the other response (pambau) all is well (until the next problem).
This worked well for my changes to blog and its helpers. But doe not seem to work for a new modular twig. I have truetest,html.twig - a modification of text.html.twig to fill the page with text when there is no image.
My site was working well until I moved it into my theme pnhbtheme/templates/modular.
Thanks, but my templates folder is at the same level as pnhbtheme.yaml.
I posted a picture of the directory structure, but I quess that I am not allowed to post an image file.
So the structure is
theme
pnhbtheme
-templates
–modular
—truetext.html.twig
–partials
—blog-item.html.twig
—blog-list-item.html.twig
–blog.html.twig
-pnhbtheme.yaml
-blueprints.yaml
All the blog stuff works as intended.
Only the modular fails.
Templates and the two yamls are at the same level.
Your example does not include any overrides to a modular template. The error is failed to find modular/truetext.html.twig.
Happy Canada Day to you too.
Here we had emergency stay out of the heat warnings:) I have almost succeeded in converting my site to run with quark instead of Gantry.
Norma
Well no, I think they were right before. They are in exactly the same place in pnhbtheme as same named files in quark directory and where the manual says to put them.
Still my blog uses the blog.html.twig and truetext.html.twig from quark.
And yes, I cleared all cache many times.
Is there something else?
Thanks