Is there also a similar mechanics for the templates exists?cabot wrote: Sun Mar 09, 2025 3:33 pm
- |__
theme/
- |__ stylesheet.css
Code: Select all
@import url("../../prosilver/theme/stylesheet.css"); /* Below are your custom CSS rules */ .foo { color: #fff; }
template/
Code: Select all
<!-- INCLUDE ../../prosilver/template/overall_header.html -->
<h1>My addition to common header</h1>
Code: Select all
<!-- INCLUDE overall_header_impl.html -->
<h1>My addition to common header</h1>
Code: Select all
{% include 'prosilver/template/overall_header.html' %}
Code: Select all
Unable to find template "prosilver/template/overall_header.html" (looked into: C:\xampp\htdocs\test\styles\prosilver2\template, C:\xampp\htdocs\test\styles\prosilver2\theme, C:\xampp\htdocs\test\styles\prosilver\template, C:\xampp\htdocs\test\styles\prosilver\theme, C:\xampp\htdocs\test\styles\all\template) in "overall_header.html"
prosilver/template/overall_header.html
appended. If there is anyway to do this it will be found in Twig documentation. Otherwise copying overall_header.html and renaming it like you already did appears to be one way to do it. It makes perfect sense if you just want to just append or prepend some HTML to original template. It's because of things like this I prefer to just edit Prosilver for my own customized style. I'm not publishing it so there really isn't any benefit to using child style.cabot wrote: Mon Mar 10, 2025 6:39 pm You cannot include the overall_header.html in another overall_header.html, it makes no sense.