Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Dimitri Longo Regular
ModSquad Team Member
Grav Forum Moderators
@dimitrilongo · Joined 9 years ago · 119 posts · 6 topics · 40 reputation
Badges
Recent posts
-
How to conditionally load external stylesheet on one page?
· 9 years ago
i tried it works for me {% block stylesheets %} {% do assets.addCss('//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css') %} {{ parent() }} {% endblock %} as a WP dev, i switch al
-
How to conditionally load external stylesheet on one page?
· 9 years ago
try with calling parent() {% block stylesheets %} {% do assets.addCss('//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css') %} {{ parent() }} {% endblock %}
-
How to conditionally load external stylesheet on one page?
· 9 years ago
https://github.com/getgrav/grav-theme-antimatter/blob/0456202d2672c0a3dde4f7eea494c330cac376a5/templates/modular.html.twig#L6-L11 don't forget to extend {% extends 'partials/base.html.twig' %}
-
How to conditionally load external stylesheet on one page?
· 9 years ago
there are examples that works in the list of threads i provide. Otherwise use https://github.com/getgrav/grav-plugin-shortcode-assets
-
How to conditionally load external stylesheet on one page?
· 9 years ago
many threads about that https://discourse.getgrav.org/search?q=assets%20per%20page or https://github.com/getgrav/grav-plugin-assets
-
How to add css to Twig templates
· 9 years ago
many ways to add assets https://learn.getgrav.org/themes/asset-manager#example in base.html.twig for example See Antimatter base.html.twig or with assets plugin https://github.com/getgrav/grav-plugin
-
Page blueprint list function
· 9 years ago
for the sublist remove header header.buttons: name: buttons type: list collapsed: true label: THEME_DIMI_ITEMS help: THEME_DIMI_ITEMS_HELP fields: .title: type: text label:
-
Having trouble creating modular template for new theme
· 9 years ago
docs are pretty clear even though modulars are little tricky https://learn.getgrav.org/content/modular So create a folder structure like : in modular.md --- title: One Page Demo Site menu: Home onpag
-
Wordpress import plugin?!
· 9 years ago
https://github.com/SiteBeez/wordpress-wp2grav-markdown-exporter don't know if it's still maintained
-
Can't run: bin/grav install
· 9 years ago
Did you try : find ./bin -type f | xargs chmod 775 https://learn.getgrav.org/troubleshooting/permissions#different-accounts-fix-permissions-manually