Forum:Found a code to hide advertisements, but don't know how to put it in

I found a code to hide advertisements on the main page of a wiki, but I don't know where to put it in:

Could someone please give me step by step instructions on how to do this? I don't know anything about source code and I don't want to put the code in the wrong place and mess up. Tiria Wildlough  Ee aye eeeh!! 13:00, October 20, 2012 (UTC)


 * Wikia's Terms of Use prohibit you from hiding ads from other users on your wiki:


 * "You further agree... Not to intentionally block, remove, or otherwise obstruct the proper functioning and view of advertisements, and/or user interface and functionality by other users, including but not limited to changing or adding javascript or CSS changes to the Service that would prevent the proper display or function of advertisements and/or user interface and functionality;"


 * So unfortunately, you are not allowed to hide ads on your wiki with the code you have above. However, you are allowed to hide ads for just yourself while logged in. To do that, you can copy/paste your CSS code above into your global.css.


 * Note: you should also go to Special:Preferences. At the bottom you should see the Appearances section. Make sure Ads is set to Don't show all ads. This preferences setting will also help hide many ads for you while you're logged in.


 * necropost
 * Edit: P.S. In the message above, I meant to write global.css instead of "global.js" -- this is CSS, not JavaScript. Sorry for the typo :(


 * Wikia never notice it however, so if you bury the code in the middle of your cs page, it is most likely that no-one will notice.95.145.206.202 15:15, October 20, 2012 (UTC)


 * Intentional deception will not go down well when you are found out. What exactly makes you think that hiding the CSS will somehow prevent the staff from noticing that the ad is physically missing from the main page? Even if you hide the CSS in 10 levels of JavaScript and CSS cross-imports, the effect will still be visually obvious and they will happily reset your code files to default to fix it if they have to. [I wouldn't be surprised if one of the many Wikia bots actually loads the main page in a browser every so often then inspects the effective CSS values to check that ads aren't being altered in any way]. Lunarity 17:08, October 20, 2012 (UTC)


 * I wasn't meaning to cause a problem, all I wanted to do was hide the ads for myself. I found this link:


 * http://community.wikia.com/wiki/Forum:Advertisement_even_after_signing_in


 * Where do I find the CSS code so I can put it in my global.css? I don't know source code. The only "source code" I know is how to type internet addresses.Tiria Wildlough  Ee aye eeeh!! 00:06, October 21, 2012 (UTC)
 * Go to your global.css and enter the code (You may use the one in the first post of this forum).
 * Lunarity, I don't think there is any bot for that as I see many wikis using CSS to hide ads. 03:58, October 21, 2012 (UTC)