Board Thread:Support Requests - Designing Your Wiki/@comment-26418565-20180417173455/@comment-26478829-20180417235544

You put the code in the MediaWiki:Wikia.css (or Common.css if you want it to affect other skins), not the template page. Be sure to revert the edits you did on the template page afterwards too, to restore the templates design.