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

Muut Archive Legend

@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • How could I insert custom php code on the page? · 11 years ago

    I need to insert some php code on the page. Twig is not enough to do this. Is is real to do this?

  • Issue with theme inheritance · 11 years ago

    Happy to help :)

  • Issue with theme inheritance · 11 years ago

    Thanks for the help guys. I do believe you've hit it sir Gert. I haven't had a chance to try it yet, but I think that will work. Excellent community you've got going here guys. :]

  • Issue with theme inheritance · 11 years ago

    exactly Gert. This is how i did it with latest template I'm working on (striped):=. I created twig file from js file and used template variables like you said: https://github.com/getgrav/grav-theme-st

  • Issue with theme inheritance · 11 years ago

    So, those theme_url + '/assets/css/style-wide.css' lines in your init.js are referencing a theme_url variable that is defined on line 36 of alpha/templates/default.html.twig That value is set to your

  • Issue with theme inheritance · 11 years ago

    Can you provide url to your working website ? Then i can really check what's going on. I never used Alpha before. Anyways i think: /assets/css/ patches should be changed to user/themes/alpha/assets/

  • Issue with theme inheritance · 11 years ago

    In Alpha (The theme I'm using) that section says this: global: { range: '*', href: theme_url + '/assets/css/style.css', containers: '60em', grid: { gutters: ['2em', 0] } }, wide:

  • Issue with theme inheritance · 11 years ago

    If you making a theme which is based on twenty, you also have to modify patches inside" js/init.js, especially this one: global: { range: '*', href: 'user/themes/twenty/css/style.css',

  • Issue with theme inheritance · 11 years ago

    Yes, I did. Also, the site looks fine if I remove the line that says – user/themes/mytheme but then that kind of defeats the point of theme inheritance. Also, I should probably mention that this site

  • Issue with theme inheritance · 11 years ago

    Did you change the default theme in the system YAML file (user/config/system.yaml) too?