• Hello… I am using a Category page for posts with “Blog pages show at most” set to 8 in Settings.

    The thing is that at the bottom of the page I would like to remove the “Next Page” pagination from the page but be able to use <!–nextpage–> in posts on the page. I have tried modifying the post-content.php file for that category template and tried several things in functions.php but am only able to remove pagination from posts. The pagination never disappears from the bottom of the page.

    Could you please show me how to remove the pagination at the bottom of the page without affecting the pagination in the posts. Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

    Please give your site URL.

    Thanks.

    Thread Starter billduffy

    (@billduffy)

    I’m on localhost right now. I’ll go live in a month but if possible would like to solve problem before that. Also it’s the “Category Archive” page that I’m using for the post page (blog).

    I’m using an Enigma child theme with a dynamic main page (without blog) so for a blog (I don’t need comments) I set up a Cat Archive page with it’s own template to simulate a blog. I made 4 of these pseudo blogs for the site. No plugins used to achieve any of this but a tab menu widget on the sidebar.

    I realize you are busy and will follow your recommendation on how to proceed. Is there anything I could post or should I just wait until we’re live? Thanks!

    Hello,

    billduffy

    1.
    Let us know if you want to remove pagination from blog on home page or you want to remove from post-content.php

    2.Is you want to home page without blogs?

    Thread Starter billduffy

    (@billduffy)

    Hello weblizar_support…

    1. I’m confident that removing it from post-content.php will achieve my mission.

    2. No blog on main page. Just widgets showing posts from my multiple category archive blogs. So I would like to have pagination in posts on my category archive blog but not at the bottom of a category archive blog page with posts on it.

    Thanks!

    1.
    open functions.php from theme folder go line 384 see below code and comment it

    <nav id="wblizar_nav"> 
    	<span class="nav-previous">
    	<?php previous_post_link('&laquo; %link'); ?>
    	</span>
    	<span class="nav-next">
    	<?php next_post_link('%link &raquo;'); ?>
    	</span> 
    	</nav>

    2.
    for second solution please live your site.

    Thread Starter billduffy

    (@billduffy)

    In my parent function.php this code below starts on line 352 ends line 363. I also don’t know exactly what you mean by commenting it. Could you just take the code below and modify it so I know what you mean. And should I paste it in my child theme function.php file? Thanks!

    /****— Navigation for Single —***/
    function weblizar_navigation_posts() { ?>
    <div class=”navigation_en”>
    <nav id=”wblizar_nav”>
    <span class=”nav-previous”>
    <?php previous_post_link(‘« %link’); ?>
    </span>
    <span class=”nav-next”>
    <?php next_post_link(‘%link »’); ?>
    </span>
    </nav>
    </div>

    Thread Starter billduffy

    (@billduffy)

    Hello weblizar_support.

    /*<?php next_post_link(‘%link »’); ?>*/

    If I comment out the above in the parent function.php file, the next button is removed while pagination remains in posts.

    I am now trying to get this into my child theme but info on removing stuff from function.php in child themes is sketchy.

    Can you please tell me how to get this into my child theme. Thanks!

    Hello,

    billduffy

    click Here copy code and replace with all functions.php code

    Thread Starter billduffy

    (@billduffy)

    Thanks w_s. I put this in my child theme function.php and it worked:

    function remove_my_parent_theme_function() {
    remove_action(‘next_post_link’, ‘my_parent_theme_function’);
    }

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘How to Remove Pagination Please’ is closed to new replies.