Use first uploaded image as featured image
When using a cred form to collect data and images, and you want to collect a number of images you can assign the first uploaded image as featured image.
Add the code in PHP to your toolset custom code page in Toolset -> Settings -> Custom Code (or in your functions.php). Once you’ve added the code you will need to replace the 13 with ID of your form and the “wpcf-repeatable-images” with the slug of your repeatable image field keeping the wpcf- prefix.
Once you have done this you will need to activate the snippet. (not necessary in functions.php).
Kind: PHP, Toolset Author: ShaneLimit WordPress Revisions
WordPress Revisions can easily take many entries in the database, and it is very common to have 50+ revisions on a single page. Imagine if you have 100 pages and posts and each has 50+ revisions, it will end up 50,000+ of entries in the database.
What I do is simply add this code to wp-config.php. You may change to number to suite your needs.
define( ‘WP_POST_REVISIONS’, 3 );
Or you can completely Disable the WordPress Post Revisions with this code
define(‘WP_POST_REVISIONS’, false );
Remember the code below needs to be placed above the ‘ABSPATH’ otherwise it won’t work.
WP Rocket
WP Rocket has become one of the best cache plugins for WordPress. Speed up your site considerably.
Kind: plugin Author: WP Rocket
Menu slide with jQuery
See Dustsolutions with the sliding menu panel. https://www.dustsolutions.nl/
See jsfiddle
Kind: CSS, HTML, jQueryHide to begin with and toggle visibility with button
Simple jQuery for something that starts hidden and by clicking a button will be visible.
Find an example here.
Kind: CSS, HTML, jQuery
Author: Jos
Bottom Aligned Buttons On Columns
I stumbled upon a way to align buttons (or any module) to the bottom of equal height Beaver Builder columns.
Kind: CSS, Beaver
Author: David Waumsley
WooCommerce Manual (in Dutch!)
Uitgebreide handleiding waarin veel onderwerpen aan bod komen en veel vragen beantwoord worden.
Kind: woocommerce
Author: Maikel van de Weerd
Pop Up with SoulSections
Out of the box SoulSections already gives you a few ways. What I wanted was a popup that was triggered by opening the page.
By using Combination-G (a preset in SoulSections, you’ll find it under rows > columns > SoulSection Combinations) and adding a few lines of JavaScript this is easily achieved.
Kind: Beaver, plugin, soulsections
Author: Dave Bloom
Simple jQuery for something that starts hidden and by clicking a button will be visible.
Find an example here.
Kind: CSS, HTML, jQuery Author: JosBottom Aligned Buttons On Columns
I stumbled upon a way to align buttons (or any module) to the bottom of equal height Beaver Builder columns.
Kind: CSS, Beaver Author: David WaumsleyWooCommerce Manual (in Dutch!)
Uitgebreide handleiding waarin veel onderwerpen aan bod komen en veel vragen beantwoord worden.
Kind: woocommerce Author: Maikel van de WeerdPop Up with SoulSections
Out of the box SoulSections already gives you a few ways. What I wanted was a popup that was triggered by opening the page.
By using Combination-G (a preset in SoulSections, you’ll find it under rows > columns > SoulSection Combinations) and adding a few lines of JavaScript this is easily achieved.
Kind: Beaver, plugin, soulsections Author: Dave Bloom