구글에서 jquery 가져다 쓰기
트래픽 때문에 이미지, 플래쉬 파일들은 다른 서버로 옮겨놓고 연결해놨음
jquery 는 서핑중 아래와 같은 소스를 발견 후 구글에 연결
수정한 파일 : 테마/functions.php
[PHP]
//Making jQuery Google API
function modify_jquery()
{
  if (!is_admin())
  {
    // comment out the next two lines to load the local copy of jQuery
    wp_deregister_script(‘jquery’);
    wp_register_script(‘jquery’,
    ‘http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js’, false,
    ‘1.4.4’);
    wp_enqueue_script(‘jquery’);
  }
}
add_action(‘init’, ‘modify_jquery’);
[/PHP]
	










					
답글 남기기