Override CSS Fix for 8.4 +
Permalink Browser Info Environment
It appears that the overrides css is being sent back to the browser with a content type of text/html which is then being ignored by some browsers. To fix this I have changed the following in packages/theme_supermint/elements/override.css.php
comment out or remove line 32:
comment out or remove lines 37 & 38
add at the end of the render method:
hopefully this can help others in the same situation
comment out or remove line 32:
//header("Content-Type: text/css");
comment out or remove lines 37 & 38
//echo $style; //echo '/* Generated Time ' . $info . ' : ' . $time . ' ms ' . "*/ \n\n";
add at the end of the render method:
\Response::create($style, 200, ['Content-Type' => 'text/css'])->send();
hopefully this can help others in the same situation
Type: | Discussion |
---|---|
Status: | In Progress |
I have three versions of my site, one local, and two at two different hosts. The local one and one of the webhosts work, but the one I am transferring to does not. I cannot for the life of me figure out why. Any thoughts? The above solution is the same for my as for binoy, those lines don't exist anymore.
Thanks for sharing - this fixed Google Fonts.
For info, you've cited the wrong override_css.php file in your instructions though. The path to the correct file to change is:
/packages/theme_supermint/controllers/tools/override_css.php
Then your instructions work a treat!
Thanks again!
For info, you've cited the wrong override_css.php file in your instructions though. The path to the correct file to change is:
/packages/theme_supermint/controllers/tools/override_css.php
Then your instructions work a treat!
Thanks again!
Magnifique! Works for me now as well. Thanks baysmedia!
Thanks this fixed a problem with fonts/css (and the overrride) where it worked fine in PHP 7.2 but didn't in 7.3
More fixes for C5 8.5.1:
Edit packages/theme_supermint/src/Models/ThemeSupermintOptions.php with:
Line 7:
Line 25: Change to
And also edit packages/theme_supermint/blocks/autonav/templates/supermint_dropdown.php with:
Line 92:
There will almost certainly be other issues - but these are the issues I've found in the Supermint theme & custom templates in my website thus far.
Edit packages/theme_supermint/src/Models/ThemeSupermintOptions.php with:
Line 7:
use \Concrete\Core\Foundation\ConcreteObject;
Line 25: Change to
class ThemeSupermintOptions extends ConcreteObject
And also edit packages/theme_supermint/blocks/autonav/templates/supermint_dropdown.php with:
Line 92:
if($ni->cObj->getAttribute('display_multi_columns_drop') || $displayOrder) :
There will almost certainly be other issues - but these are the issues I've found in the Supermint theme & custom templates in my website thus far.
I could not find out the mentioned codes and the lines in the file.
What might have happened? Would you please see the latest copy of supermint?
I am not able to use the latest form of c5. It turns out in an ugly way and; form submissions are not reported in the dashboard.
I installed addon recaptcha from marketplace. it is not working.
any idea for solution?
Thanks in advance.
Binoy John