Community Forums › Forums › Archived Forums › Design Tips and Tricks › Footer pagination [Metro]
- This topic has 8 replies, 3 voices, and was last updated 13 years, 2 months ago by
ri001.
-
AuthorPosts
-
February 12, 2013 at 6:04 am #19789
ismamartinez
ParticipantHi!
I am trying to realize how to get rid of that "Older Posts" on the footer and Install a pagination plugin, I decided to go with this one:
http://wordpress.org/extend/plugins/simple-pagination/The problem I am facing is that don't know where to paste the code. They say:
In your theme, open the theme files where you'd like pagination to be used. You need to find calls to next_posts_link() and previous_posts_link() and replace them.
Usually this is the
loop.phpfile.You would replace those two lines with this:
<?php if(function_exists('wp_simple_pagination')) {
wp_simple_pagination();
} ?>So, could you guys let me know how to do it?
I am not attached to this plugin, if there's any other better just let me know.
I am using the great "Metro" theme and you can see it in action at http://nbatips.com
Thanks!
February 12, 2013 at 7:00 am #19794sanjeev
ParticipantI hope you know that you can get the numbered pagination by changing the settings under theme settings.
Theme Settings --- > Content Archive --- > Post Navigation technique
Change it to numeric to get the numbered paging system and it will be in sync with theme colors...
if you still want to do it, let me know..I will find the code for you...
February 12, 2013 at 8:50 am #19816ismamartinez
ParticipantThat's perfect! Can you please let me know how to make it wider? I want it to go the whole post area and show more numbers.
Thanks!
February 14, 2013 at 12:38 am #20238sanjeev
ParticipantThat will require some custom coding to modify the layout.....It will auto stretch based on where you are, like if you click on 3 you will see 1-5 pages as text....to spread it to complete page, I don't have an idea, will try to find some code for it.....
February 14, 2013 at 10:35 am #20324ismamartinez
ParticipantGotcha.
Then would you be so kind to tell me how to do that thing that I was asking when I started the thread.
Thanks!
February 15, 2013 at 3:18 am #20488sanjeev
ParticipantI have not tested the code but I think you can use the hook genesis_after_endwhile, use the below code to remove the genesis default pagination:
remove_action( 'genesis_after_endwhile', 'genesis_posts_nav' );
After that you can add a new function to add your plugin
add_action( 'genesis_after_endwhile', 'custom_posts_nav' ); function custom_posts_nav() { if(function_exists('wp_simple_pagination')) { wp_simple_pagination(); } }I am on road for next two days, if this doesn't work by then, I will provide the tested code...
February 16, 2013 at 1:21 am #20650ismamartinez
ParticipantThanks, what happens now is that not even the theme pagination is shown. Don't know if it's because I started using widgets on the home page or because I am using a membership plugin.
However, I tried installing the Genesis Simple Hooks and pasting the "add_action..." code you gave me on the text box but doesn't work. Either checking or unchecking the "Unhook..." button.
February 21, 2013 at 1:25 am #21896sanjeev
ParticipantYou will not get pagination if you are using widgets on the home page, you can check it at your category or archive page to see if its working...
May 1, 2013 at 1:34 am #38702ri001
MemberYou will not get pagination if you are using widgets on the home page, you can check it at your category or archive page to see if its working…
Is there any workaround to get pagination while using the widgets on the homepage?
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.