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
Fluent Forms maps input (usable with Toolset Maps too)
If you want to add map field with click to put marker function and save the GPS data, you can use the Google Maps API with Fluent Forms. You will need Google Maps API Key and plugin for custom code snippets (you can also build your own plugin from the code by saving as PHP […]
Read More
Aleš Sýkora wrote
Display all WooCommerce categories and their products inside
11. 2. 2021 in
If you need to display all your WooCommerce categories in the list and their products inside, you can use mine code. For example you need to create one page layout for food felivery. Use my second tutorial, if you like to display all subcategories and its products on parent category archive. Page = Food Delivery […]
Read More
Aleš Sýkora wrote
Child posts menu for custom post type parent item
1. 2. 2021 in
This code will help you display menu of childs on current post. For example: Product 1 = parent has those child pages: – Product usage– How to– Disclaimer– Calculator When you put this child items menu in your template, it will show all childs of product 1 on all child pages and also on product […]
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram