Content of the page

How to remove type=”text/javascript” from WordPress site

Content of the article

  • Install this plugin: https://wordpress.org/plugins/autoptimize/
  • Enable in its options wp-admin/options-general.php?page=autoptimize 'Optimize HTML Code?'
  • In file functions.php of your current wp theme apply next code
  • Do not forget in $site_url change link to your site link without slash on its end

 

Leave a Reply

Please Login to comment
  Subscribe  
Notify of