Welcome, Guest
Username Password: Remember me

Lost Template after uptade
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Lost Template after uptade

Lost Template after uptade 7 years ago #21000

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
Last Edit: 7 years ago by sudkarting30.

Re: Lost Template after uptade 7 years ago #21001

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
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.

Re: Lost Template after uptade 7 years ago #21002

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
Last Edit: 7 years ago by sudkarting30.

Re: Lost Template after uptade 7 years ago #21003

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
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).

Re: Lost Template after uptade 7 years ago #21005

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?

Re: Lost Template after uptade 7 years ago #21006

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
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.

Re: Lost Template after uptade 7 years ago #21007

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
FYI: Mobile Joomla 2.1.24 has been released.

Re: Lost Template after uptade 7 years ago #21008

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.
Last Edit: 7 years ago by sudkarting30.

Re: Lost Template after uptade 7 years ago #21009

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
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.

Re: Lost Template after uptade 7 years ago #21011

I put everything in custom.css as a result and it seems to work!

Thank you for your help.
  • Page:
  • 1
Time to create page: 0.09 seconds

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.