Slider Only Showing From Page 2 Onwards
-
Since the update to 4.0.1 my slider is missing from the first page, and is only showing on the 2nd page onwards.
Also a couple of posts from the same category are overflowing on the iphone responsive layout.
This is the code that came up with the error (post-like.js on line 2)
jQuery(document).ready(function() {
jQuery(‘body’).on(‘click’,’.jm-post-like’,function(event){
event.preventDefault();
heart = jQuery(this);
post_id = heart.data(“post_id”);
heart.html(“<i class=’fa fa-heart’></i>?<i class=’fa fa-cog fa-spin’></i>”);
jQuery.ajax({
type: “post”,
url: ajax_var.url,
data: “action=jm-post-like&nonce=”+ajax_var.nonce+”&jm_post_like=&post_id=”+post_id,
success: function(count){
if( count.indexOf( “already” ) !== -1 )
{
var lecount = count.replace(“already”,””);
if (lecount == 0)
{
// var lecount = “Like”;
var lecount = “”;
}
heart.prop(‘title’, ‘Like’);
heart.removeClass(“liked”);
// heart.html(“<i class=’fa fa-heart-o’></i>?“+lecount);
heart.html(“<i class=’fa fa-heart’></i>”+lecount);
}
else
{
heart.prop(‘title’, ‘Unlike’);
heart.addClass(“liked”);
heart.html(“<i class=’fa fa-heart’></i>?“+count);
}
}
});
});
});This error is bootstrap.js line 292
/* MODAL DATA-API
* ============== */$(document).on(‘click.modal.data-api’, ‘[data-toggle=”modal”]’, function (e) {
var $this = $(this)
, href = $this.attr(‘href’)
, $target = $($this.attr(‘data-target’) || (href && href.replace(/.*(?=#[^\s]+$)/, ”))) //strip for ie7
, option = $target.data(‘modal’) ? ‘toggle’ : $.extend({ remote:!/#/.test(href) && href }, $target.data(), $this.data())e.preventDefault()
$target
.modal(option)
.one(‘hide’, function () {
$this.focus()
})
})
- The topic ‘Slider Only Showing From Page 2 Onwards’ is closed to new replies.