0
Welcome Guest! Login
0 items Join Now

A Best Practice...

    • 's Avatar

    A Best Practice...

    Posted 13 years 2 weeks ago
    • I have been a member of two different clubs, YooTheme and RocketTheme. Currently its only one (this one). I don't remember which club it was but I remember there being an overrides (CSS or PHP) for one of the clubs, and now I am thinking it was YooTheme.

      We all (for the most part) make some custom modifications to these awesome templates that RocketTheme put out and eventually the templates are updated by RocketTheme to fix issues. What is the best practice for modifications so that when an update is done our custom modifications aren't lost?

      Billy
    • David Goode's Avatar
    • David Goode
    • Preeminent Rocketeer
    • Posts: 17058
    • Thanks: 890
    • Web Designer and Host

    Re: A Best Practice...

    Posted 13 years 2 weeks ago
    • Hi Billy,

      My personal preference is to add my own style sheet and include it in the index.php. That way I only ever have to edit the index.php when I update.

      There is also an article in the RT Magazine by Cliff - www.rockettheme.com/magazine/dec-2011/13...cket-theme-templates

      Hope this helps 8)

    • 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
    • 's Avatar

    Re: A Best Practice...

    Posted 13 years 2 weeks ago
    • Thanks David. I took the time to read it and it makes sense for a best practice. The only question I have is this...

      What happen if you want less of the original code in your customization?

      In Cliff's example he was only changing certain things. The stuff that was not being changed he didn't have in his custom file. The system then reverts back to pick up the additional lines from the template and style CSS.

      What happens if you actually want to be taking out things from the original CSS? Does this leave you no alternative other than editing the original CSS'?
    • David Goode's Avatar
    • David Goode
    • Preeminent Rocketeer
    • Posts: 17058
    • Thanks: 890
    • Web Designer and Host

    Re: A Best Practice...

    Posted 13 years 2 weeks ago
    • Hi there,

      What I have done with some extensive customisation is to copy the bits I want to keep from template.css to my own custom.css and when I add the custom.css to the array in index.php I removed the template.css

      As I am going to have to add my css filename again if I upgrade, I can just as easily remove template.css again.

      Need to be careful about remembering the browser specific versions too! :cheesy:
    • Last Edit: 13 years 2 weeks ago by David Goode. Reason: Typo

    • 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

Time to create page: 0.110 seconds