How do I get rid of the "next page" buttons below front page posts?
Home › Forums › Free Theme Support › Theron Lite › How do I get rid of the "next page" buttons below front page posts?
-
#27224
Larry
On August 15, 2013 at 11:52 amHello. I am new to wordpress (this is my first go-round) and I could sure use some help. On the “Front Page”, within Theron (Lite) Theme Options, I have selected “Yes” on both “Enable Latest Posts” and “Show Posts from a certain Category”. I have then indicted the category (one category only) and the number of front page posts I want to show – Four. When I click on “Customize”, then select “Static Front Page/Your latest posts”, these square “next page” buttons/icons appear beneath the posts. That would be OK except that, when these are clicked on, it can’t find those pages.
When I try setting the Front page as “A static page”, it shows all posts under the selected category on the front page (five, at the moment), not just the four latest posts. What I want to do is show only the four “latest posts”- no more, no less – under the Front Page slider, without showing the subsequent/next page buttons/icons underneath the posts. Is there anything a rookie like me can do to fix this? Thanks!BTW: Nice looking theme and, despite my learning curve issues, much more intuitive than many of the other themes I played around with before finding this one!
#27428On August 16, 2013 at 5:32 amyou simply want to hide the post navigation from front page right? Go to Appearance> Editor and add this to the very bottom of your stylesheet:
.home .thn_paginate, .home .navigation{display:none;}
#27511
Larry
On August 16, 2013 at 11:57 amThanks for your very prompt response.
Here it goes. I pasted the new code in the wrong place on my first attempt. Rather than scrolling down to the very bottom of the stylesheet, I mistakenly pasted it under the “LOGO” code, which is what showed at bottom without scrolling all the way down (duh! Rookie, indeed.), When I updated that, of course it didn’t work. Realizing what I did, I went back and deleted the code from under the logo, and added it at the bottom, right after this:
home .thn_paginate, .home .navigation{display:none;}
So, the bottom of the stylesheet now reads like this:
body #topmenu ul.menu ul li, body #topmenu div.menu > ul li ul li {margin: 3px 0 3px 15px;}
home .thn_paginate, .home .navigation{display:none;}
I tried single spacing, double spacing and no space between lines of code, always hit the “Update File” button, and nothing worked. Still have the front page post nav buttons centered under the posts.
Anything else I should try? FYI: This is a site I am working on with a localhost only, (MAMP) at this time. Thanks again!
#27529
Larry
On August 16, 2013 at 1:50 pmOne more thing, I left the “.” off the beginning of the code in the replay above. This is what I added at bottom of stylesheet:
.home .thn_paginate, .home .navigation{display:none;}
#27624On August 16, 2013 at 5:38 pmyou just want to hide the navigation under the posts n front page right?
#27644
Larry
On August 16, 2013 at 6:54 pmYes, preferably. Either that or get it to go to the “next page” when the nav buttons are clicked. Right now I just get the page header and a really big “404” that pops up-very briefly- where the post should be when I click them, Followed by a “Whoops! That page could not be found…” message. I must have done something wrong, somewhere along the way. Thanks again for your help.
#27645On August 16, 2013 at 6:56 pmyou will have to match the number of posts per page on Settings> Reading page and the theron options page to get rid of the 404 issue.
#27654
Larry
On August 16, 2013 at 8:47 pmOK, that worked. If I can’t get rid of the nav buttons all together, this is the next best thing.
Will it now just keep adding navigation buttons across the bottom, depending on the number of posts? Or, will that max out after so many posts? Is there a way to control this, so that we don’t end up with a long row of navigation buttons at the bottom of the page? Right now I have 5 posts, so only 2 nav buttons on the front.
Thanks again for your help and patience with these issues. Sorry about all the questions!
#28338On August 18, 2013 at 5:08 amthere shouldnt be a long row of navigation buttons. You can also hide the navigation on homepage by opening up layout1.php and replace this :
<?php if (function_exists("theron_paginate")) {theron_paginate();} ?>
with:
<?php if ( !is_home() ) { ?><?php if (function_exists("theron_paginate")) {theron_paginate();} ?><?php } ?>
#28625
Larry
On August 19, 2013 at 10:47 pmThanks again for the quick response. Unfortunately, when I tried my first attempt at making a child theme, I seem to have lost everything I have done within the site to date. The original plus the child theme. Or, maybe I just can’t find then (within MAMP). If I can figure out how to get it back, I’ll add this code – sounds like just what I need. If I can’t find it, guess I’ll start over – then add/change the code. It’s been a learning experience, but I still have much to learn! No biggie. It’s a spec job I’ve been working on in my downtime – with no deadline – thank goodness.
.#28667On August 20, 2013 at 4:31 amare you getting a blank page? did you copy the “admin” folder to your child theme folder?
#29458
Larry Abbott
On August 23, 2013 at 6:23 pmFYI: Got the site back up on the local server (MAMP). I still wasn’t able to get rid of the navigation buttons below the post on the front page (tried your suggestions), but that’s OK. Thanks for all your help!
You must be logged in to reply to this topic.