No results found. Try again with different words?

Search must be at least 3 characters.

How to Remove Previous and Next Links From a Single Blog Post?

Sidebar Image

Did not find a solution? We are here to help you succeed.

If you wish to remove the navigation (Previous and Next) links from the single blog post, this article is for you.

You can do this in multiple ways. We are going to show you all the possible ways to do this. You can choose whichever method is convenient for you.

Step 1: Using the Customizer

This is one the easiest method; however, this is available only with the Pro version.

If you have not purchased the Astra Pro version, please check our pricing details here. If you do not wish to purchase the Astra Pro at the moment, please continue with steps 2 & 3 in this article.

If you have already purchased the Astra Pro theme, please ensure that the Blog Pro module is activated.

Now, go to Appearance > Customizer > Blog.

go to customizer > blog

Access the Single Post tab.

Scroll down and enable the “Disable Navigation” option.

Click on the Publish button to make these changes permanent.

Step 2: Using the FTP Server

The navigation links can be removed with the filter. Below is the code for the required filter-

add_filter( 'astra_single_post_navigation_enabled', '__return_false' );

Where should I put this code?

We recommend you put the filter code in the child theme’s functions.php file. Below are the steps that explain how to put the custom code into the child theme’s functions.php file:

  1. Install and activate the Astra Child Theme.
  2. Open your WordPress site via FTP. We would recommend you use FileZilla.
  3.  Navigate to wp-content > themes > astra-child.
  4.  Right-click functions.php and select View/Edit.
  5. Add your code at the bottom of the file and save it.

Step 3: Using the Theme Editor

If you are not sure about how to use the FTP, you can simply use the Theme Editor to add this code to your website.

Here is a document on how to add this code to your website’s child theme function.php.

This will remove all the previous and next post links from your single blog posts.

That’s all! If you’re still seeing the next and previous links on your blog, please contact us. We’re here to help.

Was this article helpful?
Sidebar Image

Did not find a solution? We are here to help you succeed.

Related Docs

Join 1,653,898+ Happy Site Owners Using Astra

Whether you are a beginner, small business owner, or professional web developer, Astra provides all the tools you need to easily build your beautiful WordPress website.

Scroll to Top
Now choose your preferred
page builder addon
Choose your preferred page builder addon

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Download Free Astra Theme - Modal Popup Form