Site logo

Archived topic

how to hide the code information?

1 reply · Started by d on June 9, 2019

Viewing posts 1–2 of 2

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?

This archived topic is closed to new replies.