0
Welcome Guest! Login
0 items Join Now

SOLVED Style changes to custom sections has no effect

    • ka3media's Avatar
    • ka3media
    • Rocketeer
    • Posts: 96
    • Thanks: 1

    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...

      Thanks for your help!
    • Last Edit: 4 years 2 months ago by ka3media.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    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).

      Regards, Mark.

      p.s. I think the better way of doing all this is to create a brand new layout preset that you can apply to any outline in the future http://docs.gantry.org/gantry5/advanced/creating-layout-presets - also it's nicer to also create a style preset too http://docs.gantry.org/gantry5/advanced/creating-style-presets
    • 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.
    • ka3media's Avatar
    • ka3media
    • Rocketeer
    • Posts: 96
    • Thanks: 1

    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

Time to create page: 0.088 seconds