Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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:
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap'); body { } /**umb_name:Heading*/ h1 { color: red; font-family: 'Permanent Marker', cursive; }
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.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.