Use Script Manager for CSS?


#1

Did some searching, didn’t readily see an answer. Can the Script Manager be used for CSS? Seems to be asking for the use of tags explicitly, so I’m guessing no. I am trying to implement external fonts using @fontface, which I have working using page-level style sheets, wanted to do at domain level. Is this possible?


#2

Hi @ethanede! This is certainly possible. Just add your CSS to the script manager as a custom script - just as you would under the CSS section on page level.

We do this all the time, and it saves a lot of efforts managing CSS on page level!


#3

Hi Finge,

Thanks for the tip, @Finge. I got that to work, I was missing the step that you have to actually view it on the live server. The “Preview” function does not work for previewing this which is unfortunate but makes sense.

The next issue is that if an H1 is selected while editing the page, the shady “!important” tag doesn’t seem to do its job. See attached. Have you all found a work around for this to ensure the external font displays consistently?

I understand you can also manually enter the font in code at the page level after selecting the text, but we’re trying to avoid those creating these pages to have to write any code, if there’s a better way.

24%20AM


#4

Make sure your page has no h1 font specified. Edit the code to remove “font-family” specification. In the editor the font will display as Arial, but in fact it just not set.