MyBB Community Forums

Full Version: Wordpress - CSS - /*
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey there,
Is there anybody who is familiar with Wordpress? If yes, please take a look at my case:

I have a website that I designed, I used additional CSS tool (customization tool of WP) to implement some changes in code. For example:

#SOMETHING{
height:100px;
}


/* this element is visible here, and does that */

Question - can people see my comments in the source code or anyhow? I am obviously talking about the "/* text */" element


Thanks!
CSS files are always running on client side (i mean, inside the user's browser). So, it's easy to view inside CSS files linked into your web page by checking that page's source. (Right click >> Inspect Elements / View Source)
According to this article from wordpress codex, wordpress don't use any method to filter or hide comments inside their CSS files.
So, the answer is Yes! Audience can view your comments inside CSS files.
Thanks for such a quick answer!

Is there a way to filter/hide these comments?
You should probably check Codex for these Smile
This is your solution anyways :-
https://codex.wordpress.org/Commenting_Code
Thanks!
So according to these I should simply add this into my "Additional CSS"?
/* .redblock {font-size: 80%; font-style: italic; color: red; } */