diff --git a/templates/protostar/index.php b/templates/protostar/index.php index ea48a832aea79..42d9850dd7349 100644 --- a/templates/protostar/index.php +++ b/templates/protostar/index.php @@ -42,6 +42,14 @@ // Add Stylesheets $doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/template.css'); +// Check for a custom CSS file +$userCss = JPATH_SITE . '/templates/' . $this->template . '/css/user.css'; + +if (file_exists($userCss) && filesize($userCss) > 0) +{ + $doc->addStyleSheet('templates/' . $this->template . '/css/user.css'); +} + // Load optional RTL Bootstrap CSS JHtml::_('bootstrap.loadCss', false, $this->direction);