Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Gateway inheritance theme issues

Started by Lancrenon 5 years ago · 6 replies · 470 views
5 years ago

Hello,

I have tried with the Gateway theme to do the inheritance steps, so that I won’t have any problems with any updates, but I then completely broke the stuff I deed on my website. I did follow the steps of the Grav documentation and I did it manually.
Here is the link of the one I followed :

https://getgrav.org/blog/theme-development-with-inheritance

And then I found another one :

https://learn.getgrav.org/17/themes/customization

They are slightly different it seems (to me anyway).

Does anyone have any idea of what I did wrong ?

Thanks in advance,

PS (I am completely novice at this)

5 years ago

I remember following steps manually ended up in non working theme for me. Using bin/plugin devtools new-theme and choosing inheritance went smoothly and there were no issues. Didn't bother to check the differences, because I ended up creating my own theme anyway 🙂

5 years ago

Thanks for your reply.

So I removed everything I did manually, got the devtools plugin and I am trying to do it this way and it puts me this message :
var/www/html# bin/plugin devtools new-theme
bash: bin/plugin: Permission denied

I am root and log in as an SU on my server, so I don't understand why it puts Permission denied. Any idea ?

Thanks

5 years ago

Oh, I'm probably the last person to advise on permissions, but I think you need to log in with some web user or something 😃

5 years ago

Hi,

I did found out the issue, it might be useful for anyone in the future as it is not in the Grav documentation.

If the permission is denied, in front of the commands :
bin/gpm install devtools, and
bin/plugin devtools new-theme

there should be :
php bin/gpm install devtools
php plugin devtools new-theme

also, I then did exactly as the manual, but the name of the new theme is written differently in the commands and it shouldn't (did not know that ! :upside_down_face:)
bin/plugin devtools new-theme

Enter Theme Name: MyTheme
Enter Theme Description: My New Theme
Enter Developer Name: Acme Corp
Enter Developer Email: [email protected]
Please choose a template type
[pure-blank ] Basic Theme using Pure.css
[inheritance] Inherit from another theme
[copy ] Copy another theme

pure-blank

SUCCESS theme mytheme -> Created Successfully

Path: /www/user/themes/my-theme

The only thing is that my logo is gone on the home page, another issue to solve ;-)

Thanks for your time anyway 🙂,

5 years ago

php ... is only needed on Windows I think 🤔

5 years ago

Apparently not, as I work with Linux Debian and my server is a Linux.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
3 95 5 hours ago
Support · by Anna, 3 days ago
2 94 1 day ago
Support · by Justin Young, 1 day ago
1 64 1 day ago
Support · by Duc , 1 week ago
2 100 6 days ago
Support · by Colin Hume, 1 week ago
2 92 6 days ago