AJAX Scroll links an AJAX-enabled page scroller to the standard next and previous post links.
Clicking on a next or previous link will cause the current page to fade and slide out; the following page will slide and fade in.
توسط Nick
اگر با مشکلی مواجه شدهاید،
لطفاً آن را با جزئیات برای ما ارسال کنید.
🔒 برای ثبت گزارش خرابی باید وارد سایت شوید.
AJAX Scroll links an AJAX-enabled page scroller to the standard next and previous post links.
Clicking on a next or previous link will cause the current page to fade and slide out; the following page will slide and fade in.
For example,
$as_elem_id = ‘some_value’;
where is the element ID of the post container where the contents will be replaced.
At present this requires modifying the plugin’s JavaScript file. Open the file located in wp-content/plugins/ajax-scroll/js/ajax-scroll-js.php.
The first two lines of this file declare two variables, “speed” and “opacity_loading”. You can modify these values to change the slide timing and fade opacity.
The “speed” value is the time (in ms) it takes to slide the container. So, the higher the number, the slower the animation.
The “opacity” value is a decimal representation of the opacity percentage (from 0 to 1). The lower the value, the more transparent the content will be while loading. A value of 1 equals no fading.
In your theme, place a (div or other) element where you want the loading icon to appear. The ID of this element must be “_load”. So, if the ID of your content’s container is “content”, the loading DIV must have an ID “content_load”. Once this is in place, the loading element will automatically appear during the transition animation.
Yes! Just replicate the instructions in “installation” for each section on the page. Make sure that each content container has a unique ID!
Scrolling through any set of single posts should work fine. However, if your paging system is unique (not standard), the direction of the scroll may be wrong. In this case, you can either modify ajax-scroll.php to fit your needs or reverse the directions in js/ajax-scroll-js.php.
| نسخه | حجم فایل | SHA256 | تغییرات | دانلود |
|---|---|---|---|---|
| 0.42 | 8 کیلوبایت | - |
دانلود
برای دانلود باید وارد سایت شوید
ورود / ثبت نام |
قیمت:
رایگان
نگارش
0.42
آخرین انتشار
29 اردیبهشت 1405
آخرین بروزرسانی
1 ماه پیش
نصب های فعال
10+
نگارش وردپرس
وردپرس 2.8+
تست شده از نسخه
وردپرس 2.9.2
نگارش PHP
-
تگ ها
نسخه ها
1 نسخه