Jump to content

Why is custom.css overwritten on update?


Recommended Posts

The customization doc http://developers.whmcs.com/themes/css-styling/ says to make css changes to custom.css and that "This file is included after styles.css allowing you to override any of the CSS defined within it and will not be affected by future updates to the WHMCS software." Am I misreading this or is there an error in the documentation or update process?

Link to comment
Share on other sites

https://forum.whmcs.com/showthread.php?125882-WHMCS-v7-1-2-upgrade-bug

 

the updater assumes that if you've modified custom.css, you've also renamed the template to something other than "Six" - which in my opinion is stupid... I know users that are using custom.css, nav hooks and language overrides, but haven't changed any of the templates - they're happy to keep the template called "Six"... but the updater ignores that and tries to wipe the custom.css file on update (though it at least warns you).

 

best thing you can do is either make a backup of custom.css before updating, or rename the template from "Six" to something else - that would prevent the updater from modifying it, but would also mean you'd have to update the templates manually.

 

it's ridiculous either way, but I wouldn't hold your breath waiting for WHMCS to change their policy on this. :roll:

Link to comment
Share on other sites

  • 2 weeks later...
https://forum.whmcs.com/showthread.php?125882-WHMCS-v7-1-2-upgrade-bug

 

the updater assumes that if you've modified custom.css, you've also renamed the template to something other than "Six" - which in my opinion is stupid... I know users that are using custom.css, nav hooks and language overrides, but haven't changed any of the templates - they're happy to keep the template called "Six"... but the updater ignores that and tries to wipe the custom.css file on update (though it at least warns you).

 

best thing you can do is either make a backup of custom.css before updating, or rename the template from "Six" to something else - that would prevent the updater from modifying it, but would also mean you'd have to update the templates manually.

 

it's ridiculous either way, but I wouldn't hold your breath waiting for WHMCS to change their policy on this. :roll:

 

Thanks for that link. Why would I want to create a copy of the six template and need to keep it in sync with changes in the automated update process? Why would you bother to have a custom.css file if it gets overwritten anyway? This automated update process is awfully manual.

Link to comment
Share on other sites

Thanks for that link. Why would I want to create a copy of the six template and need to keep it in sync with changes in the automated update process?

https://developers.whmcs.com/themes/getting-started/

 

The default template that ships with WHMCS 6.0 and later is called the Six theme.

Before you begin customising it for your needs, the first step is to create your own copy of the template. This ensures your customisations are not lost when updating.

Why would you bother to have a custom.css file if it gets overwritten anyway? This automated update process is awfully manual.

logically, it shouldn't get overwritten if the file already exists... but far too often, logic and WHMCS don't go together. :roll:

Link to comment
Share on other sites

  • 1 month later...
  • WHMCS Support Manager

Hi,

We welcome feature requests online at http://requests.whmcs.com

 

If you'd like to suggest the ability to whitelist individual files on a bespoke basis in the auto-updater, I'd encourage you to add your vote to this existing idea: https://requests.whmcs.com/topic/ignore-option-on-update

 

The more popular a suggestion becomes, the more likely our development team is to consider it for potential inclusion in a future release!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated