0
Welcome Guest! Login
0 items Join Now

Different Css Per preset

    • Waqas's Avatar
    • Waqas
    • Newbie
    • Posts: 9
    • Thanks: 0

    Different Css Per preset

    Posted 9 years 8 months ago
    • I have searched the forum and found several articles on it but no one helps.

      I want to add different css for each present, so based on the choosen preset, it should load some css that is defined for that preset.

      I need step by step procedure on how to do this.

      I want to do this for gantry framework wordpress theme.

      thanks
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Different Css Per preset

    Posted 9 years 8 months ago
    • Waqas's Avatar
    • Waqas
    • Newbie
    • Posts: 9
    • Thanks: 0

    Re: Different Css Per preset

    Posted 9 years 8 months ago
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21564
    • Thanks: 3091
    • messin' with stuff

    Re: Different Css Per preset

    Posted 9 years 8 months ago
    • I don't know what other tricks Damir has up his sleeve...

      but if you go to Theme Settings > Gizmos you can enable "Page Suffix"

      www.gantry-framework.org/documentation/w...izmos.md#page-suffix

      ... and then you'll get a unique CSS class loaded into the <body> tag on each page that you can then target within your CSS file to affect styling on just that page
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • Waqas's Avatar
    • Waqas
    • Newbie
    • Posts: 9
    • Thanks: 0

    Re: Different Css Per preset

    Posted 9 years 8 months ago
    • Just to elaorate clearly

      I want to load different css file for each present. So based on chosen present, it will load some css file. I i will define styling in that css file for that specific present.

      thanks
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21564
    • Thanks: 3091
    • messin' with stuff

    Re: Different Css Per preset

    Posted 9 years 8 months ago
    • yeah, I hear what you're saying... I don't know if Damir has a direct solution for that or not... I'm certainly not aware of any feature that does that... my solution in an alternate approach to unique CSS for each page
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • Waqas's Avatar
    • Waqas
    • Newbie
    • Posts: 9
    • Thanks: 0

    Re: Different Css Per preset

    Posted 9 years 8 months ago
    • Matt wrote:
      yeah, I hear what you're saying... I don't know if Damir has a direct solution for that or not... I'm certainly not aware of any feature that does that... my solution in an alternate approach to unique CSS for each page


      Ok lets wait what Damir says, but your suggested solution is not much good as i want to load new css file when some preset is chosen from theme options.

      thanks
    • Waqas's Avatar
    • Waqas
    • Newbie
    • Posts: 9
    • Thanks: 0

    Re: Different Css Per preset

    Posted 9 years 7 months ago
    • Is there any solution?

      Many days passed but no proper reply.

      thanks
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Different Css Per preset

    Posted 9 years 7 months ago

Time to create page: 0.061 seconds