Jump to content
  • Status: Moved to Github

Due to the known issue with custom theme settings not working in AdminCP > Theme Designer Core JS and CSS Templates

I've been using the custom css page on the frontend as suggested in this workaround.

I've found it works as expected, for example switching a background header image using a drop down field, but sometimes it completely wipes the custom css I have added.

It may be related to having a setting that uses Trigger Page Refresh enabled, as it started happening very soon after I enabled that on my theme setting in the AdminCP.

Fortunately, I had a backup still in my clipboard memory, but it has happened several times since I started using the Trigger Page Refresh, so it may be related in some way.

Word to the wise, make a backup frequently when using the front end custom css in case you find it suddenly wiped, whatever the cause!

User Feedback

Recommended Comments

Marc

Invision Community Team

Im not able to replicate this unfortunately. Please could you give step by step exactly what you add, and indeed in which order, for it to wipe things out?

The Old Man

Clients

Hi Marc,

Many thanks, I'll PM you the exported theme to test with, if you like.

I made a video of it happening, which shows the custom CSS present to start with, then using a drop down field to choose a different image (this works 100%). After saving the changes, the header image disappears because the CSS is wiped.

It is possible to click on the Revert button in the custom css screen and the CSS comes back, so that it handy becasue I was thinking I would have to save a copy continously to a file!

I just checked and despite the header background image not changing the first few times I changed it, Trigger Refresh is enabled for that particular field, so I will test it some more with it disabled to see if that is what it causing it.

Marc

Invision Community Team

Thank you. Please reference this topic in any PM

The Old Man

Clients

I have just been toggling the various forum/topics/topic layout settings and it wiped my front-end CSS again! Lost all the CSS code I wrote since my last manual backup of the front-end CSS page.

The Old Man

Clients
(edited)

I have been able to replicate the complete loss of all front end custom CSS using multiple themes. It does seem to be triggered by using the Trigger Refresh option in settings in combination with a drop down field. I have disabled the option for Trigger Refresh and so far it is not losing the custom CSS when saving the changes.

Edited by The Old Man