[resolved] Can't load photo slider on frontpage. (2 posts)

  1. dragongamer54
    Posted 5 years ago #


    Currently I am building my own theme which loads a photo slider (Coin Slider to be specific) on the front page.
    After I made all the preparations the slider wouldn't load. I don't know what to do now.

    This is my code in the header :

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
    <script type="text/javascript" src="js/coin-slider.min.js"></script>

    This is my code in my header DIV :

    <div id="coin-slider">
                    <img src="images/slide/test2.jpg" alt="" />
    				Some text2
                    <img src="images/slide/test.jpg" alt="" />
    				Some text1

    This is my code in the footer:

    <script type="text/javascript">
    	$(document).ready(function() {
    		$('#coin-slider').coinslider({ width:980, height:320, navigation: false, delay: 5000, spw: 1, sph: 1, sDelay: 30, titleSpeed: 800 });

    Could someone please point me out how I am able to let this work?
    Is there also a way to only let this slider appear on the home/frontpage of my website?

    Greetings dragongamer54

  2. Boris
    Posted 5 years ago #

    why don't you use the plugin?
    See . You still need to put the code in the footer though.

Topic Closed

This topic has been closed to new replies.

About this Topic