The default Post Navigation that comes with the Beaver Builder Theme does what it's suppose to do.
It allows your readers to navigate through the pages of your blog.
Get instant access to a list of over 1000 winning products
With ready-to-go videos you can use in your facebook ads + more!
Below is a screenshot of what the default Post Navigation looks like with the Beaver Builder Theme and what we'll be changing to a numbered Post Navigation through this tutorial.
But there's a serious downfall in our eyes.
With the default Post Navigation in the Beaver Builder Theme the reader can only navigate between one Post at a time.
This is why we always recommend a numbered Post Navigation for your Blog, similar to the below.
And this is exactly what we're going to create in this Post.
Step 1: Copy index.php from the Parent Beaver Builder Theme into your Child Theme
NOTE: You should always use a Child Theme when designing your websites, so we will assume for this tutorial that you ARE in fact using a child theme.
Using your FTP client or cPanel, navigate to the Parent Beaver Builder Theme folder located at /wp-content/themes/bb-theme and copy the index.php file from the Parent Beaver Builder Theme and paste it into your child theme.
For example, if you are using our highly popular Electro CHARGE child theme, you would copy the index.php file from the BB Parent Theme folder into /wp-content/themes/electrocharge.
NOTE: If your Beaver Builder Child Theme already contains an index.php file, you may be able to skip directly to step two but it will depend on how your Child Theme is coded.
Step 2: Replace the built-in Beaver Builder Post Navigation with the custom numbered Post Navigation
In the index.php file that you just copied into your child theme, look for the line
<?php FLTheme::archive_nav(); ?>
(that appears AFTER the while loop) and replace it with all the code below.
Then, save the index.php file you just edited in your Child Theme.
Step 3: Add some CSS to style the numbered Post Navigation and ensure the navigation sits under the Posts
Edit your Child Theme's style.css file (or go to wherever you add your CSS in your website) and add the below CSS code.
ABOUT THE ABOVE CSS
- We float the navigation left and add a CSS clear on it so that the custom numbered Post Navigation sits under the list of posts on our Blog page.
- .odw-pagination * we space out our numbers so they aren't too close together
And that's it!
After you've added the simple code snippets above, you should have something similar to the below on your blog.
Here's some ready-made CSS styles
We've written some CSS to help you quickly style your new numbered Post Navigation. All you have to do is fill out the form below to get the CSS for the different styles below.
BLOCK POST NAVIGATION
BLOCK ROUNDED POST NAVIGATION
ROUNDED SQUARE MINIMAL POST NAVIGATION
Complete the form below to instantly get the CSS for styling the numbered Post Navigation in the styles shown above