Support Forum
I'm using the Reboot theme and created a child theme rebootchild. As a test, I want to change the font size, so I opened sp-resources/forum-themes/rebootchild/styles/rebootchild.php and added this line (it's the only thing in there):
#spMainContainer { font-size: 2em !important; }
When I refresh the forum the F12 tools confirm that the file is getting to the browser but it won't recognize the CSS. This is happening in multiple browsers and I confirmed it's not a browser cache issue.
The only clue that looks out of place is the HTTP response headers are specifying rebootchild.php as text/problem-with-post-edit-buttontml instead of text/css. Not sure why the server is doing that or if it's relevant, but reboot.php is being correctly sent as text/css.
You can see this for yourself here.
Did you add the header. The child css (php) file will need the following header at the very top of the file:
<?php
header("Content-Type: text/css; charset: utf-8");
header("Expires: ".gmdate('D, d M Y H:i:s', (time()+900)) . " GMT");
?>
If you haven't added that then that is probably the problem.
We are planning to include child theme 'frameworks' probably in the next update which will help in the future.
YELLOW
SWORDFISH
|
1 Guest(s)