Snippets for creating better sites with Toolset, WordPress & Themes.

Bootstrap 4 button line break

Break the line of long text in Bootstrap 4 button on mobile device.

Last edited: 11. 11. 2019

Comments Shortcode for Content Templates

Display comments section whetever you want.

Last edited: 11. 11. 2019

Speeding up WordPress & Toolset

Tips for speeding up WP + Toolset.

Last edited: 10. 11. 2019

WP Rocket + Toolset Exclude files from Defer JS

If you use WP Rocket + Toolset (especially Toolset forms) you should exclude deferring some scripts.

Last edited: 10. 11. 2019

Restrict post types in taxonomy archive

If you need to restrict which custom post types will display in taxonomy archive, you need to do it with some PHP. Here is how to do it.

Last edited: 10. 11. 2019

Woocommerce Bootstrap 4 CSS Columns Cart Fix

Woocommerce uses same CSS classes for their cart columns. It makes some problems with Bootstrap 4. Easy way to fix it.

Last edited: 10. 11. 2019

Astra Theme Container Width Fix

If you encounter some issues with container width on mobile device when using Astra Theme and Toolset and Bootstrap try this CSS fixes.

Last edited: 10. 11. 2019

Set Dropdown Field Default Value With Javascript

If you want to change the -not set- text when using the dropdown field in Toolset form, you must use custom JavaScript. Here is an example how to do it.

Last edited: 10. 11. 2019

Checkbox with link for Accepting terms & conditions in toolset form

The easy way how to add the checkbox with link to your Terms & Conditions or GDPR page.

Last edited: 10. 11. 2019

Remove Archive Title Prefix in Astra Theme

You can use this as a plugin to disable the Archive: Category: Tag: prefix in Astra Theme archives.

Last edited: 10. 11. 2019

Disable Astra Theme Next/previous Post link

Disable Next/Previous Post in Astra Theme.

Last edited: 10. 11. 2019

Auto-populate child content with parent content’s title

Code snippet from our fan.

Last edited: 10. 11. 2019

Auto login after creating new user with Toolset user form

Snippet from our fan.

Last edited: 10. 11. 2019

Properly align Checkbox in Astra theme

Hello, today I found that Astra theme incorrectly displays Toolset form checkbox. This is fast repair:

Last edited: 10. 11. 2019

Best practise for jQuery in Toolset

Let me explain best practices for using jQuery inside a View, Form or Content Template’s JS panel.

Last edited: 10. 11. 2019

Get a grandparent post ID from a shortcode

This simple shortcode will allow you to get that grandparent post ID without the need for additional Content Templates or Views.

Last edited: 10. 11. 2019

Shortcode to display word count or reading time

This shortcode “word-count” will display a count of words for whatever content is passed, and can optionally display an estimated reading time.

Last edited: 10. 11. 2019

Taxonomy Post Count for Custom Post Type

Add this snippet to your functions.php or create your own plugin…

Last edited: 10. 11. 2019