Havouza Posted May 24, 2017 Posted May 24, 2017 Is it possible to add css classes to a css-file and use them on the cms pages like T&C etc
wakabayashi Posted May 24, 2017 Posted May 24, 2017 You can use cms.css file, which is in your theme folder. If you wanna have specific rule for one page, you can use selector "#cms-id". Ofc you should replace id with the number.
Havouza Posted May 24, 2017 Author Posted May 24, 2017 @wakabayashi that worked like a dream. Can you also solve the next problem? I use some Awsome fonts on the page. Is there a way to link them to the cms pages
Nemo Posted May 24, 2017 Posted May 24, 2017 @Havouza Could you clarify? Font Awesome should be loaded in global.css, is it not available on the cms page?
Havouza Posted May 24, 2017 Author Posted May 24, 2017 There is a special css in css/vendor/font-awesome/. The awesome icons load in an iframe so I have changed the settings to allow iframes also. but it does not show up. It is one icon font I need its a tick. fa fa-check. I will investigate further
wakabayashi Posted May 24, 2017 Posted May 24, 2017 Hm I don't understand your problem. Is your site live? Or can you show us your html code?
Havouza Posted May 24, 2017 Author Posted May 24, 2017 Site is not ready but live Html Webmail This works perfect in a normal htmlpage www.host-thirty.com. Compare packages. Allmost all empty cells should have a tick in it
Havouza Posted May 24, 2017 Author Posted May 24, 2017 Go to the link and press Compare packages in the menu
Havouza Posted May 24, 2017 Author Posted May 24, 2017 One question is if the cms pages read the font-awesome.css file
wakabayashi Posted May 24, 2017 Posted May 24, 2017 I see... Not sure what is the problem, since I add FontAwesome by CDN. Try to add this to global.css .fa-check:before { content: "\f00c"; }
Havouza Posted May 24, 2017 Author Posted May 24, 2017 If you look in the page source the font-awesome css file is not linked . It can not work
wakabayashi Posted May 24, 2017 Posted May 24, 2017 Not sure if this is problem. The phone icon on the top is loaded...
wakabayashi Posted May 24, 2017 Posted May 24, 2017 Oh yeah Michael is right :D @mdekker why is it done like this? It confuses me a lot ^^
Traumflug Posted May 24, 2017 Posted May 24, 2017 I add FontAwesome by CDN. Come on. 30bz comes with no less than 3 font-awesomes (admin/themes/default/sass/vendor, themes/community-theme-default/sass/vendor and modules/themeconfigurator/views/css/font) already and that's still not enough for you? Haha :-)
wakabayashi Posted May 24, 2017 Posted May 24, 2017 I am not yet on tb on live server and removed the font from my theme ;)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now