Loading...
 
Features / Usability

Features / Usability


DISASTER - how do I rebuild the css?

posts: 26

In trying to increase the font throughout my site, In the LookAndFeel admin page I put this into header_custom_css (large value so it's obvious):
. { font-size: 200%;}
DISASTER: no page will fit into the fixed page width, and I cannot undo it. Zooming in and out changes the width as well as the font size, so it doesn't help. Looking at the page source in my browser I clearly see that line in a tag inside .

Using my server's DatabaseManager, the last entry in tiki_actionlog is setting "header_custom_css" to that value. In the table tiki_preferences I found the row name="header_custom_css" with that value, and cleared it.

But pages are still enormous, and that line is still in the header. I understand the css is "compiled" for faster loading, and the LookAndFeel page automatically does that when items are changed. How do I do that manually? I do not have shell access to the server, but I have a FileManager that can edit and upload files; I know HTML, PHP, and JavaScript.

Strange — some pages are OK, and some are enormous and unusable. Unfortunately the LookAndFeel page is still enormous. I am afraid to clear my browser cache as that will log me out, and I may never get back in. Using a different browser the HomePage is enormous and I cannot log in, even after clearing its cache.

posts: 26

I was able to work-around this. I found the string in one of the file in tikiwiki/temp/cache, and I changed 200% to 100%. I can now use the website again. In Admin/LookAndFeel the custom css is now empty, presumably because I cleared it in the database.

tjrob wrote:

In trying to increase the font throughout my site, In the LookAndFeel admin page I put this into header_custom_css (large value so it's obvious):
. { font-size: 200%;}
DISASTER: no page will fit into the fixed page width, and I cannot undo it. Zooming in and out changes the width as well as the font size, so it doesn't help. Looking at the page source in my browser I clearly see that line in a tag inside .

Using my server's DatabaseManager, the last entry in tiki_actionlog is setting "header_custom_css" to that value. In the table tiki_preferences I found the row name="header_custom_css" with that value, and cleared it.

But pages are still enormous, and that line is still in the header. I understand the css is "compiled" for faster loading, and the LookAndFeel page automatically does that when items are changed. How do I do that manually? I do not have shell access to the server, but I have a FileManager that can edit and upload files; I know HTML, PHP, and JavaScript.

Strange — some pages are OK, and some are enormous and unusable. Unfortunately the LookAndFeel page is still enormous. I am afraid to clear my browser cache as that will log me out, and I may never get back in. Using a different browser the HomePage is enormous and I cannot log in, even after clearing its cache.

posts: 8633 Israel
tjrob wrote:
I was able to work-around this. I found the string in one of the file in tikiwiki/temp/cache, and I changed 200% to 100%. I can now use the website again. In Admin/LookAndFeel the custom css is now empty, presumably because I cleared it in the database.


Hello,

Copy to clipboard
. { font-size: 200%;}
was (is) a bad move.


If you want to change the body font use (something that I wouldn't do with such drastic change):

Copy to clipboard
body { font-size: 200%;}


"tikiwiki/temp/cache" files are caches files and temporary.
You shouldn't edit them, rather simply refresh your cache, see: https://doc.tiki.org/clearing-cache

There were some cases I recall modules/menus required me to empty the folder "tikiwiki/temp/cache" but seems ok now. In all case those files will be recreated by Tiki.

If your issue is solved, please add a [solved] tag in front of your thread title.
Thanks