문제가 있습니다. 컬러 박스 효과를 워드 프레스 테마에 통합하고 싶습니다 (플러그인 제외).플러그인 및 워드 프레스없는 컬러 박스 3.5.1 갤러리
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/colorbox.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"></script>
이 :
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.colorbox.js"> </script>
<script>
jQuery(document).ready(function(){
$("a[href$='.jpg'],a[href$='.png'],a[href$='.gif']").colorbox({transition:"elastic", maxWidth:"80%", maxHeight:"80%", slideshow:"true"});
});
그래서, 그와 함께, 하나의 이미지가 잘 작동 그래서 나는이 있습니다. 그들은 컬러 박스 창에서 열립니다. 하지만 갤러리에는 아무것도 없습니다. 는 그래서, 예를 들어, 다음과 같이, 갤러리 단축 코드에
link="file"
을 추가 : 그와
[gallery ids="54,53,58,59,66" link="file"]
, 좋은 colorbox 오픈 갤러리의 이미지. 그러나 문제는 각 이미지가 단일 이미지처럼 열리고 페이지 매김이 없음 (다음 이미지 및 이전 이미지 없음)
사이트를 로컬에서 테스트하고 있으므로 링크가 없습니다. Wordpress 3.5.1 플러그인 없음
이 문제를 해결하는 방법을 모르겠습니다.
누군가가 문제가있는 부분을 알고 있다면 매우 좋습니다.
감사합니다.