Forum:Importing css

I just realized that the following line is incorrect

importScriptURI( 'http://religion.wikia.com/index.php?title=User:Granpa/wikia.css&action=raw&ctype=text/javascript' );

Even though the given url does indeed open to the right page it doesnt work presumably because type=text/javascript is incorrect.

what type should I use to make this work correctly?

I already tried the obvious.

Granpa (talk) 23:19, July 24, 2012 (UTC)

Here's a couple different imports you could use (these are JavaScript):

Warning: The stylesheet you are trying to use has a number of syntax errors, of which the following may only be a few:


 * Thank you. I have a second account and I am trying to import it into this page
 * http://religion.wikia.com/wiki/User:Granpa2/wikia.css
 * I have tried both and neither works.
 * Now that I think about it, we were importing navigation popups into our sitewide javascript page using a very similar line and it stopped working many months ago.
 * Granpa2 (talk) 00:15, July 25, 2012 (UTC)


 * our javascript page is empty now but here is what it looked like before it mysteriously stopped working.
 * http://religion.wikia.com/wiki/MediaWiki:Wikia.js?oldid=190668
 * Granpa (talk) 00:19, July 25, 2012 (UTC)


 * I wouldn't know anything about why your navigation pop ups don't work. It appears to be a script from Wikipedia, and there's no guarantee that scripts from Wikipedia will work (or continue to work) here on Wikia, as both sites are quite different.


 * w:c:religion:User:Granpa2/wikia.css <-- You can't put JavaScript in a CSS page like that! The import statements I gave you above were JavaScript.




 * Its working great. :-) Granpa2 (talk) 01:01, July 25, 2012 (UTC)