GetSimple Support Forum
Custom CSS - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: Custom CSS (/showthread.php?tid=14515)



Custom CSS - bokor.pavol - 2020-06-25

Custom CSS plugin is the plugin for GetSimple CMS.
This plugin adds custom CSS to the footer of theme.

Install:
1. Download the plugin
2. Unzip the file to GS plugin directory
3. Enable the plugin in the admin panel
4. Go to the theme tab

Download plugin here.


RE: Custom CSS - Felix - 2020-06-26

Hi bokor.pavol

Thanks for adding this plugin. I will check it out
and report back.
F.


RE: Custom CSS - Tyblitz - 2020-07-05

Hi Bokor,

I haven't tested the plugin, but just looking at the code it can impossibly work:
  • $customcss_data is set only if (isset($_POST['submit'])) so the initial render will always fail with Uncaught TypeError: cannot read property 'customcss_content' of null.
  • The window.onload script, you can't be sure it is executed if the document is already loaded by then. You should use:
Code:
if (document.readyState === 'complete') { /* code */ }
else { window.onload = function() { /* code */  } }