开发者 |
Iznogood1
stranger-jp Erida StepanovM |
---|---|
更新时间 | 2021年11月12日 18:14 |
PHP版本: | 2.7 及以上 |
WordPress版本: | 5.8.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
page-navi-slider
folder into your plugins folder (/wp-content/plugins/)Plugins
menu in WordPressSetting / Page navi slider
menu<?php if(function_exists('page_navi_slider')){page_navi_slider();}?>
in your templates.auto display
feature in the settings (not recommanded).Page navi slider is displayed by the following instruction :
<?php if(function_exists('page_navi_slider')){page_navi_slider();}?>
You should think to insert that code in every templates likely to display several pages:
<?php twentythirteen_paging_nav(); ?>
) by the code above.
In the twentytwelve theme, replace both the following lines:
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">?</span> Older posts', 'twentyten' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">?</span>', 'twentyten' ) ); ?></div>
The slider does appear only when page numbers exceed the plugin width! Look at the following FAQ to reduce the plugin width.
Just set the margin
in the settings.
width
or max-width
for the wpns_wrapper
class in the CSS.
You have specified different font sizes for "normal" numbers and "on hover" numbers in the settings. Then total width is changing.
$a=__('you cusomized string','page-navi-slider');
/lang/page-navi-slider-fr_FR.mo
to /lang/page-navi-slider-ISOSTANDARD.mo
(ISOSTANDARD = language code)Auto display adds an action that will echo the plugin. The action can be hooked at the get_footer event or at the wp-footer event. If the first case, the plugin is displayed at the top of the footer. If the second, the plugin is displayed at the end top of the footer. Note that Wordpress recommends plugins not to echo with theses actions!
url('your_file.ext')
your_file.ext
to the actual file name.
show total pages
option was automatically checked when the plugin was deacitvated/reactivated)