helsing lee
asked 11 years ago

How "wp_deregister_script( ‘twitter-indent’, ‘//platform.twitter.com/widgets.js’ );"

I want delete the twitter.js, But in function.php can not delete it, It also load in single page. Please help me! Thanks

2 Answers
DominicStaff
answered 11 years ago

Hi !

– Thanks for your interest in our products!
May I ask which theme you had those issues with?

Regards,

Dominic

helsing lee
replied 11 years ago

DW Focus,and I want to replace WordPress’s jQuery.js with google’s jquery.min.js,But in the functione.php I can’t the metrod to delete these js. Tanks!

DominicStaff
answered 11 years ago

– To delete “wp_deregister_script( ‘twitter-indent’, ‘//platform.twitter.com/widgets.js’ );” you can open the functions.php file / and then remove the line 184.

– If you want to replace WordPress’s jQuery.js with google’s jquery.min.js, you can open the functions.php file / line 140 and then add the following code to the file.

wp_deregister_script('jquery');wp_register_script('jquery', '<your jquery version>', false, '<version number>');
 wp_enqueue_script('jquery'); 

See the screenshot: http://imgur.com/dLGcpPx

you can change link jQuery of the google here: “your jquery version”

Regards,
Dominic

Powered by DW Question & Answer Pro