Hide some text site wide

Zakch93

Elite Member
Joined
Mar 7, 2020
Messages
2,307
Reaction score
855
I have a phrase in every post and I'd like to hide it, instead of using "search better replace" plugin to delete it.
 
Use search and replace to add <span class="hide">your word</span>.
Then, use CSS to hide it -
.hide {display: none;}
 
Use search and replace to add <span class="hide">your word</span>.
Then, use CSS to hide it -
.hide {display: none;}
Best mod ever. Thanks I'll try this.

Best practice for adding CSS, it should be in wp core file instead of theme customized CSS to work in case I change theme I suppose. So in what wp config file does this goes?
 
Google will still see that if that is your concern but your average member will not.
 
Best mod ever. Thanks I'll try this.

Best practice for adding CSS, it should be in wp core file instead of theme customized CSS to work in case I change theme I suppose. So in what wp config file does this goes?
In appearance, customise, there should be a place to add additional css. Equally there’s normally a place in your themes settings to do the same.
Google will still see that if that is your concern but your average member will not.

ah ok thanks
Yes, it would be hard to fool Google if that was your intention. I’m sure there’s ways to do that but I don’t know them.
 
In appearance, customise, there should be a place to add additional css. Equally there’s normally a place in your themes settings to do the same.



Yes, it would be hard to fool Google if that was your intention. I’m sure there’s ways to do that but I don’t know them.
cloaking will make it possible ?
 
Back
Top