admin管理员组文章数量:1122832
How to hide the leading site url from the source code example
.css
Becomes
/wp-content/themes/themename/style.css
Removing the main site URL which /
from the source code
I've seen many sites running wordpress however they don't have the Site URL shown in the source code for CSS and JS files.
I know there are many plugins that can help hiding wordpress source code so no one will know it's wordpress however none of them removes the Site URL from files links.
How to hide the leading site url from the source code example
http://example.com/wp-content/themes/themename/style.css
Becomes
/wp-content/themes/themename/style.css
Removing the main site URL which http://example.com/
from the source code
I've seen many sites running wordpress however they don't have the Site URL shown in the source code for CSS and JS files.
I know there are many plugins that can help hiding wordpress source code so no one will know it's wordpress however none of them removes the Site URL from files links.
Share Improve this question edited May 18, 2020 at 16:49 fuxia♦ 107k38 gold badges255 silver badges459 bronze badges asked May 17, 2020 at 16:03 David BuikDavid Buik 1111 silver badge5 bronze badges 4 |1 Answer
Reset to default 0You can write your css codes inside php file, So your css file becomes style.css.php
Then you can put it by include_once()
in your theme So your css file will not be displayed in your page source code.
本文标签: pluginsHide Wordpress Site URL from Source Code
版权声明:本文标题:plugins - Hide Wordpress Site URL from Source Code 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736285725a1927518.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
wp-content
is right there. – Jacob Peattie Commented May 18, 2020 at 1:02