Archived topic
how to hide the code information?
1 reply · Started by d on June 9, 2019
for security.I wanna to hide the html code information about wp and theme file directory.
so the question is how to change the code from every HTML page:
<!--[if lte IE 11]> <script type='text/javascript' src='https://www.florasay.com/wp-content/themes/generatepress/js/classList.min.js'></script> <![endif]-->
to be
<!--[if lte IE 11]> <script type='text/javascript' src='https://www.florasay.com/wp-content/themes/g/js/classList.min.js'></script> <![endif]-->
I can really make a "themes/g/js/classlist.min.js" flie directory and js file on my host
if change the code by add function.php code, generatepress theme could update automatically.that's better,or other way?
I don't believe it's possible to hide/change the folder name without losing the ability to automatically update the theme, unfortunately.
Just did a search and found this: https://wordpress.org/plugins/wp-hide-security-enhancer/
Maybe it will help?