GetSimple Support Forum

Full Version: Custom CSS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Hi bokor.pavol

Thanks for adding this plugin. I will check it out
and report back.
F.
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 */  } }