diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php
index b4db10a49..a78ffacfc 100644
--- a/app/Schema/Mysql.php
+++ b/app/Schema/Mysql.php
@@ -6,7 +6,13 @@ use PDO;
use Core\Security;
use Model\Link;
-const VERSION = 53;
+const VERSION = 54;
+
+function version_54($pdo)
+{
+ $rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)');
+ $rq->execute(array('application_stylesheet', ''));
+}
function version_53($pdo)
{
diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php
index 331205fa1..2396000f8 100644
--- a/app/Schema/Postgres.php
+++ b/app/Schema/Postgres.php
@@ -6,7 +6,13 @@ use PDO;
use Core\Security;
use Model\Link;
-const VERSION = 34;
+const VERSION = 35;
+
+function version_35($pdo)
+{
+ $rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)');
+ $rq->execute(array('application_stylesheet', ''));
+}
function version_34($pdo)
{
diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php
index 551e186ed..0e0512d06 100644
--- a/app/Schema/Sqlite.php
+++ b/app/Schema/Sqlite.php
@@ -6,7 +6,13 @@ use Core\Security;
use PDO;
use Model\Link;
-const VERSION = 52;
+const VERSION = 53;
+
+function version_53($pdo)
+{
+ $rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)');
+ $rq->execute(array('application_stylesheet', ''));
+}
function version_52($pdo)
{
diff --git a/app/Template/config/application.php b/app/Template/config/application.php
index 26f3743e7..f6c9db949 100644
--- a/app/Template/config/application.php
+++ b/app/Template/config/application.php
@@ -20,6 +20,9 @@
= $this->formSelect('application_date_format', $date_formats, $values, $errors) ?>
= t('ISO format is always accepted, example: "%s" and "%s"', date('Y-m-d'), date('Y_m_d')) ?>
+ = $this->formLabel(t('Custom Stylesheet'), 'application_stylesheet') ?> + = $this->formTextarea('application_stylesheet', $values, $errors) ?>