خرید بک لینک

Vote count: 0

Im having a problem loading pages in wordpress with ajax. I have to make animated page transition, so i decided to use ajax and put page content into a div which i will animate into view. I created this logic, that works 50% of the time. There are generally a lot of weird bugs.

So my question did anyone create ajax page loader in wordpress? I read a bit about using ajax with wordpress, and that i had to use wordpress built in features, but I didn't get why is that. Also I don't know how to get the back button to work properly.

$( links ).click(function(e) {

    var link = $(this).get(0).href;
    $('body').append('<div class="contain-all"></div>');

    $('.contain-all').load(link);

    if(link!=window.location){
      window.history.pushState({path: link},'',link);
    }

    e.preventDefault();
});

Hope somebody has the anserws I need. :)

asked 30 secs ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 8 مرداد 1395 ساعت: 3:41

صفحه بندی