Hello,
Please give your site URL.
Thanks.
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?
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('« %link'); ?>
</span>
<span class="nav-next">
<?php next_post_link('%link »'); ?>
</span>
</nav>
2.
for second solution please live your site.
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>
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
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’);
}