Pagination Home error
-
Hi uebas, Thanks for using my theme RedWaves lite!
I have 2 fixes for your issue! choose the one you like more:
Fix1: This will add a bottom padding to the pagination buttons so they won’t stick vertically to each other again:
Go to Appearance => Customize => Design & Layout and put the following CSS styles in the Custom CSS textfield then save.
.nav-links .page-numbers { margin-bottom: 10px; }Alternatively, you can add them directly to your style.css file.
Fix2: This will shorten the pagination buttons by removing (in your case) the “1” and “5”:
open index.php from WordPress file editor (Appearance => Editor then select index.php from the sidebar) or using FTP or CPanel and find this block of code:
<?php // if WP version 4.1.0 or above use the_posts_pagination() built in function. if (4.1 <= floatval(get_bloginfo('version'))):?> <?php the_posts_pagination( array( 'mid_size' => 2, 'prev_text' => __( '‹ Previous', 'redwaves-lite' ), 'next_text' => __( 'Next ›', 'redwaves-lite' ), ) ); ?>and replace it with this:
<?php // if WP version 4.1.0 or above use the_posts_pagination() built in function. if (4.1 <= floatval(get_bloginfo('version'))):?> <?php the_posts_pagination( array( 'mid_size' => 1, 'prev_text' => __( '‹ Previous', 'redwaves-lite' ), 'next_text' => __( 'Next ›', 'redwaves-lite' ), ) ); ?>If you have more questions please check our dedicated Support Forum https://forum.themient.com/ ( our main Website and forum are very secured and SSL enabled ) and you will get quicker answer.
Hope this helped you!
Regards!Ah just one note: if you are using WP 4.0 or below you only have the first fix!
When come page/4/ is wrong yet
http://s27.postimg.org/kcfi7om6b/Capturar.jpg
Using lastest versionWell, change
'mid_size' => 2,to:
'mid_size' => 0,Or use the built in pagination function. To do so change:
<?php // if WP version 4.1.0 or above use the_posts_pagination() built in function. if (4.1 <= floatval(get_bloginfo('version'))):?> <?php the_posts_pagination( array( 'mid_size' => 0, 'prev_text' => __( '‹ Previous', 'redwaves-lite' ), 'next_text' => __( 'Next ›', 'redwaves-lite' ), ) ); ?> <?php else : ?> <?php redwaves_pagination(); ?> <?php endif; ?>to:
<?php redwaves_pagination(); ?>Fixed
Thanks a lotglad i helped you!
Kind Regards 🙂
The topic ‘Pagination Home error’ is closed to new replies.
