Note that there are some explanatory texts on larger screens.

plurals
  1. PONeed help loading jquery plugin Wordpress 3.8
    primarykey
    data
    text
    <p>I'm trying to incorporate this plugin - <a href="http://jedrzejchalubek.com/glide/" rel="nofollow">Glide.js</a> ---- into my wordpress homepage. Please have a look at the README file for instruction reference.</p> <p>Following is what the custom page template that I created looks like *</p> <pre><code>&lt;?php /** * The template used for displaying frontpage content * * @package WordPress * @subpackage Twenty_Fourteen * @since Twenty Fourteen 1.0 */ ?&gt; &lt;head&gt; &lt;link rel="stylesheet" href="&lt;?php bloginfo('template_url'); ?&gt;/glide/css/style.css"/&gt; &lt;?php function my_init() { if (!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', 'http://code.jquery.com/jquery-1.9.1.min.js', false, '1.3.2', true); wp_enqueue_script('jquery'); // load a JS file from my theme: js/theme.js wp_enqueue_script('my_script', get_bloginfo('/wp-content/themes/twentyfourteen') . 'glide/jquery.glide.js', array('jquery'), '1.0', true); } } add_action('init', 'my_init'); ?&gt; &lt;/head&gt; &lt;div class="front-content"&gt; &lt;div class="slider"&gt; &lt;ul class="slides"&gt; &lt;li class="slide"&gt;&lt;img alt="" src="http://mydomain.com/wp-content/images/hosting.png"/&gt;&lt;/li&gt; &lt;li class="slide"&gt;&lt;img alt="" src="http://mydomain.com/wp-content/images/web-development.png"/&gt;&lt;/li&gt; &lt;li class="slide"&gt;&lt;img alt="" src="http://mydomain.com/wp-content/images/domains.png"/&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt;&lt;!-- .front-content --&gt; </code></pre> <p>I am not exactly sure where I'm going wrong in my code, but basically the output I get is 3 slide images in consecutive list format, ie. rather than the actual slideshow.</p> <p>The entire output would also be off-center and displays slightly off the page.</p> <p>Accordign to the README, I am also not sure how to list/create the API instance, or use suggested script to init.</p> <p>---- Where am I going wrong :/</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload