최근에 새로운 경지로 향하고 있습니다. 저는 최근에 Wordpress에 접속했습니다. 수많은 시간이 혼란 스러울 때, 나는 아직도 혼란 스럽지만 덜 혼란 스럽다는 xD를 말하는 것이 안전합니다.Wordpress에 Fullpage.js 포함 (또는 JS 일반)
어쨌든, 나는 페이지에 fullpage.js (또는 자바 스크립트의 모든 조각)를 포함하려고 노력하고 있지만 작동시키지 못합니다. 방금 fullpage.js 폴더의 예제 중 하나를 사용하려고했는데 작동하도록 할 수조차 없습니다. 여기 페이지에있는 것입니다 :
<link href="http://wevolunteer.co/wp-content/themes/radiate/css/jquery.fullPage.css" rel="stylesheet" type="text/css" />
<link href="http://wevolunteer.co/wp-content/themes/radiate/css/example.css" rel="stylesheet" type="text/css" /><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script><script type="text/javascript" src="http://wevolunteer.co/wp-content/themes/radiate/js/jquery.fullPage.js"></script>
<script type="text/javascript" src="http://wevolunteer.co/wp-content/themes/radiate/js/example.js"></script><script type="text/javascript">// <![CDATA[
$(document).ready(function() {
var pepe = $.fn.fullpage({
slidesColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'],
anchors: ['firstPage', 'secondPage', '3rdPage', '4thpage', 'lastPage'],
menu: '#menu',
scrollingSpeed: 1700
});
});
// ]]></script>
<select id="demosMenu"><option id="background" selected="selected">Choose Demo</option><option id="background">Background images</option><option id="backgroundVideo">Background video</option><option id="gradientBackgrounds">Gradient backgrounds</option><option id="looping">Looping</option><option id="noAnchor">No anchor links</option><option id="scrollingSpeed">Scrolling speed</option><option id="easing">Easing</option><option id="callbacks">Callbacks</option><option id="css3">CSS3</option><option id="continuous">Continuous scrolling</option><option id="normalScroll">Normal scrolling</option><option id="scrolling">Scroll inside sections and slides</option><option id="navigationV">Vertical navigation dots</option><option id="navigationH">Horizontal navigation dots</option><option id="fixedHeaders">Fixed headers</option><option id="apple">Apple iPhone demo (animations)</option></select>
<ul id="menu">
<li data-menuanchor="firstPage"><a href="#firstPage">First slide</a></li>
<li data-menuanchor="secondPage"><a href="#secondPage">Second slide</a></li>
<li data-menuanchor="3rdPage"><a href="#3rdPage">Third slide</a></li>
</ul>
<div class="section " id="section0">
<h1>fullPage.js</h1>
Configure the scrolling speed!
<img alt="fullPage" src="imgs/fullPage.png" />
</div>
<div class="section" id="section1">
<div class="slide">
<div class="intro"><img alt="Cool" src="imgs/1.png" />
<h1>Slow scrolling speed</h1>
In case we want to make a site for old people, for example :)
</div>
</div>
<div class="slide">
<div class="intro"><img alt="Compatible" src="imgs/2.png" />
<h1>Landscape too</h1>
Also applied to landscape slides. Great uh?
</div>
</div>
</div>
<div class="section" id="section2">
<div class="intro">
<h1>Slooooooww</h1>
Now you can try other demos!
</div>
</div>
당신이 사용할 수있는 [WP FullPage] (https : //로 워드 프레스 .org/plugins/wp-fullpage /)를 사용하십시오. –
[공식 fullpage.js 사이트] (http://alvarotrigo.com/fullPage/)에도 링크 된 WordPress 테마가 있습니다. – Alvaro