I have some html code, which has some css.
This css is inside the themes folder.
How can I apply the styles when the site renders, as currently not working.
Would be cool to see it styles inside the editior too?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I have some html code, which has some css.
This css is inside the themes folder.
How can I apply the styles when the site renders, as currently not working.
Would be cool to see it styles inside the editior too?
Add in your themes/theme-name/templates/Page.ss
those lines:
<% require themedCSS(layout) %>
<% require themedCSS(typography) %>
<% require themedCSS(form) %>
If your style css file is called style.css and its in themes/theme-name/css folder add line:
<% require themedCSS(style) %>
your theme can u change in mysite/_config.php file using line:
SSViewer::set_theme('theme-name');
Arvixe Web Hosting / SilverStripe Community Liaison | Looking for quality SilverStripe Web Hosting? Look no further than Arvixe Web Hosting!