Aleš Sýkora / November 28, 2023 / 4 comments

Disable Astra Theme Next/previous Post link

Post summary: Disable Next/Previous Post in Astra Theme.

If you do not like the next/previous post links on bottom of astra post layout, use this in Tooset ‘ s custom code settings:

Astra Theme Next/Previous Post Link
Astra Theme Next/Previous Post Link
<?php
/**
 * New custom code snippet (replace this with snippet description).
 */

toolset_snippet_security_check() or die( 'Direct access is not allowed' );

// Put the code of your snippet below this comment.

add_filter('astra_single_post_navigation_enabled', '__return_false');

Add this to Toolset > Settings > Custom Code. Do not forget to activate the snippet after saving. Also check only front end to run this snippet.

Custom Code snippet added to Toolset
Toolset Settings Custom Snippets

Fuel my passion for writing with a beer🍺

Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻

4 comments

Share Your Thoughts