@import not working
3 posters
Page 1 of 1
@import not working
Technical Details
Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Mozilla Firefox, Google Chrome, Internet Explorer, Opera, Safari
Who the problem concerns : All members
Forum link : http://www.canvasforums.com
Description of problem
I have the following import rule pasted at the top of my CSS Stylesheet but for some reason it isn't working..- Code:
@import url('https://fonts.googleapis.com/css?family=Hind|Noto+Sans|PT+Sans|Raleway|Quicksand');
Last edited by Valoish on July 5th 2017, 5:14 pm; edited 1 time in total
Re: @import not working
Hi @Valoish,
If memory serves right, @import rules don't work in the stylesheet unless you deactive the basic CSS. (Display > CSS > Deactivate the Basic CSS) The reason they don't work is because Forumotion merges the forum's basic CSS and your custom CSS, with the basic CSS coming BEFORE your custom CSS, so it renders the @import rules useless, because @import rules have to be at the very beginning of the stylesheet. (see "@import" for extra info)
It should work if you disable the basic CSS, but that can pose a problem if you're using basic styles.. I think the best alternative would be to edit the overall_header template and include the following tag in the <head> section.
If memory serves right, @import rules don't work in the stylesheet unless you deactive the basic CSS. (Display > CSS > Deactivate the Basic CSS) The reason they don't work is because Forumotion merges the forum's basic CSS and your custom CSS, with the basic CSS coming BEFORE your custom CSS, so it renders the @import rules useless, because @import rules have to be at the very beginning of the stylesheet. (see "@import" for extra info)
It should work if you disable the basic CSS, but that can pose a problem if you're using basic styles.. I think the best alternative would be to edit the overall_header template and include the following tag in the <head> section.
- Code:
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Hind|Noto+Sans|PT+Sans|Raleway|Quicksand"/>

» import theme not working
» import skin not working?
» Every time i import a theme it says "Import ended." and the theme doesnt change
» admin control panel not working correctly, moderation buttons not working, when posting message saying link to insecure url
» Mod's button not working and guest permission not working on forum
» import skin not working?
» Every time i import a theme it says "Import ended." and the theme doesnt change
» admin control panel not working correctly, moderation buttons not working, when posting message saying link to insecure url
» Mod's button not working and guest permission not working on forum
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum