Disable post navigation on a specific post

[ad_1]

Hello @atesz03,

We don’t have this option for only one post. However, you can do it by writing a custom CSS and using the unique ID for the page/post on the body class: https://postimg.cc/yDj5sQG0 / https://postimg.cc/BXCVs7L4.

Like this CSS:

.postid-81 .post-navigation {
    display: none !important;
}

Use your post(s) ID instead of the above example class.
If you want to add more, each CSS should be in one line and separate with a comma.

For instance:

.postid-2870 .post-navigation,
.postid-81 .post-navigation {
    display: none !important;
}

You can learn how to use Chrome Developer Tools or Firefox Developer Tools to help you see and test changes to your CSS:

CSS Tutorial:

Put the CSS above in Customizing > Custom CSS/JS > CSS Code. Please read this link for more information about the CSS/JS code on the customizer: https://docs.oceanwp.org/article/354-add-custom-css-and-js-to-your-website.

Note: If you have any cache plugin or server cache(CDN / Browser Cache and Cookies and …), you need to clear its cache contents or disable them to see your changes. Also, remember to click on the regenerate all assets file and data in Elementor > Tools(if you have Elementor).

I hope it helps.
Best Regards

Thank you @skalanter. This is exactly I was looking for and it works perfectly.

One more question regarding the post nav: curretly the previous/next buttons are only navigating between the posts inside the same category. Is it possible to make them show all the posts regardless of their category?

Another side question about the CSS: if I go to /wp-admin/theme-editor.php, the style.css of my child theme is empty. The CSS-codes I enter in customizer don’t appear there. Does it mean that I will lose them by the next theme update?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer