Lost Template after uptade

sudkarting30
7 years ago
Hello,

After the update in version 2.21.23, I lost all my CSS styles, normally after each update, I replace the structure.css and mj.css as well as jquery.mobile-1.4.5 and b0d0a9 in media .
Every time my style becomes as I had modified and impossible.
In addition my menu is at the bottom and totally weird ...

www.sudkarting.fr

Best Regards
dryabov
7 years ago
Even in previous versions it was incorrect to change auto-generated files in media/mj directory, because of they are generated depending on client's browser, extensions used on the page, etc. We recommend to override necessary css rules in the template's css/custom.css file that is not overwritten during MJ update. In MJ 2.1.23 we have improved CSS parser and optimizer, and so all dependent files have been updated.
sudkarting30
7 years ago
and so? What can I do to get everything back at first?
More if I do Extensions> Template> Template Mobile_Basic> Template preview everything is ok ....

in a second time, do I have to put all that is in structure.css and mj.css in custom.css or_custom.css?

third, the plugin "Responsive Scrolling Tables" does not work anymore....

Is it possible to recover version 2.21.22?

Thanks
dryabov
7 years ago
If changes are not significant, it's better to put modified css rules to css/custom.css (without leading underline).

If changes are significant, maybe it's better to:
1) copy templates/mobile_basic to templates/mobile_basic2 (or some other name),
2) change new template name in templateDetails.xml appropriately,
3) go to Extensions->Discover and Install new template,
4) and switch to new template in MJ settings.
After that updates of MJ will not affect your modified template.

PS. As to your issue, it is due to change in js merging algorithm and will be fixed in 2.1.24 soon (in few hours).
sudkarting30
7 years ago
OK Thanks!

Sorry but I am sucker in css, since I modified (slightly) the structure.css and mj.css do I have to copy the 2 file afterwards in custom.css?
dryabov
7 years ago
Yes, custom.css may look like a merged copy of two files, and it may increase resulting css file (in media/mj) a little bit, but being gzipped it shouldn't lead to significant increase in traffic.
dryabov
7 years ago
FYI: Mobile Joomla 2.1.24 has been released.
sudkarting30
7 years ago
Top at 99.99% !!! My custom.css works !!!

All came back except my titles and connections which are in blue (# 2ad) instead of being orange (# fe5000) and from what I see to modify it is in media / mj / 14e1fe.css

What should I do to avoid the problem with each update?

Otherwise ok for plugin.
dryabov
7 years ago
Don't modify files in media/mj directory, they may be recreated automatically, and there are different files for different mobile browsers (and not the single one). Using of css/custom.css or creating a copy of mobile_basic template are preferable ways to avoid problems after each update.
sudkarting30
7 years ago
I put everything in custom.css as a result and it seems to work!

Thank you for your help.

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.