Update to 1.7.2 from 1.7.0 removed all code from Custom header
-
The JS code in the custom header should be moved to the Custom Javascript tab instead. If you had any other HTML, then it should have remained.
-
@PitaJ I have exactly the same Problem. Custom Javascript is gone after updating to 1.7.3. Custom JS und header tab are empty. Is there a possibility to recover that code?
-
Oh, that's really odd... the upgrade script should've copied the existing code over...
What happens if you check the database for
customHTML
andcustomJS
inconfig
hash?Mongo:
db.objects.find({ _key: "config" }, { "customJS": 1, "customHTML": 1 });
-
@julian Yes, i was afraid that would be the case. Anyways, my fault for not having them in version control.
So apart from Google analytics script, we were doing mostly cosmetic and UX changes on the persona theme based on the url segments. e.g if the composer page is loaded, we select a specific category as default. or things like having autosuggest (using the api plugin you wrote) on the search input field.
You can have a look at the website to have an idea http://definedictionarymeaning.com.
We were intentionally overwriting stuff in the custom header to avoid overwriting the tpl files. Because with new releases, updating template changes is quite tedious.