Help:Options to hide an image: Difference between revisions

Content deleted Content added
Disable images on specific pages: <syntaxhighlight lang="css" inline>.page-Muhammad .depiction {display: none;}</syntaxhighlight>
Line 42:
To disable images on a specific page, go to your [[Special:MyPage/common.css|common.css]] ([[Special:MyPage/common.css|common.css]] is your personal [[Wikipedia:CSS|CSS]] page, and is different to your [[Special:MyPage/common.js|common.js]]). Create the page if it doesn't exist, and add the following code below:
 
<syntaxhighlight lang="css" inline>.page-(Page name) img {display: none;}</syntaxhighlight> or <syntaxhighlight lang="css" inline>.page-Muhammad .depiction {display: none;}</syntaxhighlight>
 
Where you'll replace <syntaxhighlight lang="css" inline>(Page name)</syntaxhighlight> with the actual [[Wikipedia:Page name|page name]] you wish to apply the restriction to.