Skip to content

Code snippets

  • Search
  • Add snippet
  • Blog
  • About us
  • Account

Mollie activeren voor Gravity Forms

formulieren > instellingen > mollie

Kind: plugin Author: mollie

Disable Clicks on Empty Menu Items

When creating a dropdown menu in WordPress, often the parent menu item is used simply as a hover point to access the submenu, not as an actual link. When this is the case, we can use the following steps to indicate to the user that these menu items are not to be clicked.

Kind: CSS, jQuery Author: Alex Mansfield

f you want to display a custom set of posts and custom post types (CPTs) in a Posts or Search module, y

Create a filter to customize the display of post data
If you want to display a custom set of posts and custom post types (CPTs) in a Posts or Search module, you can create a filter to override query args in the FLBuilderLoop class.

Kind: PHP, Beaver Author: bevaer builder

Beaver Themer — Set Header Layout to be Sticky on Mobile

Beaver Themer — Set Header Layout to be Sticky on Mobile

Author: https://gist.github.com/carlosonweb

to hide prices / add to cart until a user logs? Woocommerce

met hide cart

https://gist.github.com/jameshwartlopez/3fe1b860fa77d814fac908bace3da83c

Kind: PHP, woocommerce Author: jameshwartlopez

Gutenberg Blocks cover image

Simple Example of Cover Image Block
Very simply, the Cover Image block allows you to include an image with text sitting in front of it, like the image below (where the words “Simple Cover Image Block” are not part of the image but text typed directly into the block in the editor):-


Remove website from comment form

Kind: PHP

Remove Website field from Post comments

add_filter( ‘comment_form_default_fields’, function($fields ) {
unset( $fields[‘url’] );
return $fields;
}, 11 );
Kind: Beaver

Add qty inputs next to add to cart button with and without Ajax reload on WooCommerce archives

Kind: PHP, woocommerce Author: W-beaches

Change ‘Return To Store’ text button in WooCommerce

WooCommerce version 2.6 has brought out a new text filter that lets you change the text of ‘Return To Store’ on the button that appears on the cart page when the cart is empty. The filter is called woocommerce_return_to_shop_text and this is how you can use it.

Add the snippet in your themes functions.php file.

Kind: PHP, woocommerce
Older Posts »

© 2016-2022 Code snippets - Jos Vermeulen. All Rights Reserved.