0
Welcome Guest! Login
0 items Join Now

Template Overide - Style Sheet external

    • ShooMoe's Avatar
    • ShooMoe
    • Jr. Rocketeer
    • Posts: 29
    • Thanks: 0

    Template Overide - Style Sheet external

    Posted 10 years 10 months ago
    • Hello, I have a questions. So I created a override template. So my main template is Gantry and the overide is let call it ORTemplate. I have the custom CSS called gantry-custom.css that works on the default template but let's say that I want 10 override template. The first one I will call 01_ORTemplate. Can I create a style sheet that calls that specific template? Or is there another way that I should be doing it that will keep the code clean. I simply added it in the gantry Template Manager. Any help will be appreciated.

      Regards,

      Jason
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22291
    • Thanks: 3228
    • messin' with stuff

    Re: Template Overide - Style Sheet external

    Posted 10 years 10 months ago
    • If it were me I'd just use page class suffixes/styles... just target each page/menu item specifically in your single custom.css file if you want to apply different styling to different pages...

      that would work well if only a few pages are assigned to each override... not so well if you have lots and lots of pages with a particular override applied.

      But no, I'm not aware of any built-in mechanism to load a specific css file when a specific override template is in play.
    • 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:
    • ShooMoe's Avatar
    • ShooMoe
    • Jr. Rocketeer
    • Posts: 29
    • Thanks: 0

    Re: Template Overide - Style Sheet external

    Posted 10 years 10 months ago
    • Matt, thank you! Do you know if there is a maximum number of overrides that one can create? I agree that I can do a few but once I get to lots I have to create a solution that will allow for that external style sheet. I think that would be the cleanest way to keep up with the changes.

      THanks
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22291
    • Thanks: 3228
    • messin' with stuff

    Re: Template Overide - Style Sheet external

    Posted 10 years 10 months ago
    • I do not believe there is a maximum number of overrides... with anything though, just keep an eye on overhead/page load times ;)
    • Last Edit: 10 years 10 months ago by Matt.
    • 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:

Time to create page: 0.088 seconds