feeelix
Member
Posted 3 years ago #
Something similar to Pagebar, I guess? But something that works in 2.7?
Please check my blog http://thegoldenowl.co.uk - as you can see, In the 5 posts I've made there is quite a lot of stuff to scroll through.
If it keep growing it will take forever to load. How do I make it so that stuff goes into different pages (maybe have something like "older posts" click here)?
All help greatly appreciated.
Thank you
Felix
thisisedie
Member
Posted 3 years ago #
Put
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
in the index.php of your theme (look at the index.php of the default theme for placement) and
.navigation {
display:block;
width:100%;
}
.alignleft {
float:left
}
.alignright {
float:right;
}
in your stylesheet if they aren't already there and then go to admin/settings/reading and choose how many posts you want to show on the front page. Default is 10.
Pagebar v2.5 will support mulit-paged pages and the enhanced comments display. I hope to deploy the new version sometime in spring.
feeelix
Member
Posted 3 years ago #
Hi Eddie.
The ".navigation.. display:block..." is NOT in my stylesheet. Do I add it myself? If so, anywhere in particular? Or just anywhere?
As for the first bit of code..
Do i out that anywhere in particular in the index.php or just anywhere?
Thanks for your help. Most appreciated.
Felix
thisisedie
Member
Posted 3 years ago #
Put:
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous') ?></div>
<div class="alignright"><?php previous_posts_link('Next »') ?></div>
</div>
right after <?php endwhile; ?> and just before <?php else : ?> in your index.php and then put
.navigation {
display:block;
width:100%;
}
.alignleft {
float:left
}
.alignright {
float:right;
}
at the bottom of your stylesheet.
feeelix
Member
Posted 3 years ago #
I've just done that :)
But nothing has changed on my site http://thegoldenowl.co.uk (scroll down!)
Will this be an automatic thing where it changes once it reaches a certain amount of *something* ..? What is this something, post count or material within my posts? My posts are often image heavy, you see.
Thanks mate, really do appreciate you replying all the while. :)
thisisedie
Member
Posted 3 years ago #
How many posts do you have it set to in your admin section? settings/reading
feeelix
Member
Posted 3 years ago #
I've just changed it to two, so that you can see the extra "<<PREVIOUS" that appears on the far bottom left of the page. It's aesthetically displeasing! How do I remove it?
I think that will be all I need to know :)
Take it out of your index.php.
feeelix
Member
Posted 3 years ago #
What do I search for to take it out? Sorry, I'm new at this and have only been blogging for a week.
thisisedie
Member
Posted 3 years ago #
Nevermind anything I've said previously. I didn't see the pagebar thing. So you want a numbered list at the bottom of the page then -- not previous and next links?
What do I search for to take it out? Sorry, I'm new at this and have only been blogging for a week.
You JUST put it in yesterday upon my instruction. You take it out the same way you put it in...
feeelix
Member
Posted 3 years ago #
No no, I mean to take out the EXTRA "previous" button on the far bottom left of the site. Please have a look and you'll see what I mean.. I'm happy with it how it is, except for the extra button!
Open index.php in notepad and use control+F to search for "previous". You'll find a line like this:
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('« Previous Entries')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Next Entries »')) ?></div>
</div>
Delete it.
feeelix
Member
Posted 3 years ago #
Thank you all very much. That worked. :)
Have a great weekend.