SOLVED Style changes to custom sections has no effect
Posted 4 years 2 months ago
Gantry 5, Helium Template
I've added two sections to the default outline ** Means Base outline - default is what's it called in the filesystem **
Added them in the custom/config/default/index.yaml (sections and positions)
Added them in the custom/config/default/styles.yaml
Added them in the custom/config/default/layout.yaml
Added these two sections as blueprints (/blueprints/styles)
The sections and the positions works fine, i can add and delete positions and particles.
BUT: The style settings has absolutely no effects. The styles.yaml for the outlines are saved with the information different to the default outline, but it has no effect in the frontend. No matter if I clear the cache, recompile the css....
The same with the default template. I can change style in the default, it will be saved in the yaml file, it is visible in the outlines based on default in backend... but no impact on the frontend.
Changing other section styles has an impact, so there must be something wrong with mine...
Re: SOLVED Style changes to custom sections has no effect
Posted 4 years 2 months ago
Yes, you need to add SCSS to act upon the style settings for your new sections. You can just add these to your custom.scss file or create a separate file and import that into your custom.scss (after import of "dependencies"). As an example, the template comes with section scss files in /templates/g5_helium/scss/helium/sections - so you need to do something similar for your new sections (in /templates/g5_helium/custom/scss folder).
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Re: SOLVED Style changes to custom sections has no effect
Posted 4 years 2 months ago
Thank you for your reply.
Just a few minute ago I found out myself... stupid not to think about this. I had the crazy thought, the variables will be generated from the section names and the style yaml... don't aks me why.
The idea with the presets is a good one, thnak you