이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Post Head Includes

설명

Easily add scripts and stylesheets per post. This is a great tool for developers creating custom pages for their clients, but also useful for the blogger who wants to separate inline CSS & JS from their post content.

This plugin provides an interface for wp_enqueue_script and wp_enqueue_style functions, so all of the functionality that a developer would find there is available in this plugin.

However, script localization differs from wp_localize_script in that with this plugin you are allowed to input raw JavaScript code for localization, library initialization, and more.

This plugin may also help to alleviate modern browser XSS detection from blocking potentially unsafe JavaScript.

스크린샷

  • Easily add unlimited items to your post or page.
  • You only need to configure a type and a source to get your includes properly loaded.
  • For more advanced options, you can completely customize your scripts, adding localizations or initializer code.
  • Tag your included stylesheets for properly CSS media types to add greater flexibility to your pages.

설치

  1. Upload files to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Create a new post or page
  4. Configure your post head includes in the meta box below the editor

FAQ

Where are my scripts and stylesheets?

They will be added to the HEAD area of the page or post.

Can I have more than one script or stylesheet?

Yes, you can add as many as you’d like or need.

Can I add my scripts to the footer for faster loading?

Yes, under the Advanced Options you can set In Footer to true.

My included script needs to be initialized. How can I do this?

Under Advanced Options you can add any custom JavaScript to the Localization text area. This will be added after your JS file.

How to conditions work?

When adding a condition, you need only to write the expression, and not the entire comment tag. For example, to load the item only for IE browsers at version 9, you would write if IE 9. Note: Adding a condition will force the item to be included at the end of the element (after all other scripts and stylesheets). Therefore, specifying dependencies will have no effect.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Post Head Includes”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Post Head Includes”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

0.2.1 – Fixed inconsistent post ID management on save.
0.2.0 – Added support for IE conditional tags; minor code cleanup.
0.1.0 – First release.