Thanks for help. I had tried something similar i.e. @import but without the single quote around the font name in the CSS and that seems to have done the trick.
do you know how to clear the cache? When I make changes to my rte.css the don't get displayed imediately because there seems to be a copy of the stylesheet in cache.
If you need it for other users it depends on the version of Umbraco but in v7 the hardcore way was to increment the version number in config\ClientDependency.config
e.g. clientDependency version="336087072"
And then "touch" the webconfig to make the app restart.
RTE / Formats / Google fonts
Hi everyone
Quick question regarding the format dropdown in RTE. Is it possible for the styles therein to use Google fonts? and if so how?
Thanks
Hi David,
Create a file in your /css/ folder - I tend to call mine RTEStyles.css and import the external font.
Add:
Then go and add this stylesheet to your RTE Data type(s).
You should now see the style sheet as an option in the formats dropdown.
Just remember to add the import to your front end styles too or it won't do anything.
Hi Steve
Thanks for help. I had tried something similar i.e. @import but without the single quote around the font name in the CSS and that seems to have done the trick.
Hi Steve,
do you know how to clear the cache? When I make changes to my rte.css the don't get displayed imediately because there seems to be a copy of the stylesheet in cache.
Thanks, Edi
Try running dev tools in the browser.
If you need it for other users it depends on the version of Umbraco but in v7 the hardcore way was to increment the version number in config\ClientDependency.config e.g. clientDependency version="336087072"
And then "touch" the webconfig to make the app restart.
Steve
Thanks Steve. Have a nice day!
is working on a reply...