Aleš Sýkora wrote

Disable Astra Theme Next/previous Post link

11. 7. 2019 in

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Schema Markup for blog post w/ Gogle Tag Manager and Toolset Layouts
30. 7. 2018 in
Boost your technical SEO with Schema.org markup. Easilly use Google Tag Manager with JSON+LD script to tell the browser robots what is your page about!
Read More
Aleš Sýkora wrote
Flickity carousell same height slides fix
24. 3. 2021 in
If you need all your slides to have same height, add the CSS selector to your slider cells and use this code in your CSS: Do not forget to add the cellSelector attribute to your flickity slider setup:
Read More
Aleš Sýkora wrote
Bootstrap 4 button line break
11. 11. 2019 in
Break the line of long text in Bootstrap 4 button on mobile device.
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram