Snippets Archive - Divi Engine https://diviengine.com/snippets/ Boost the power of your Divi website Wed, 22 May 2024 14:39:23 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.4 Customize WooCommerce Variation Text https://diviengine.com/snippets/divi-bodycommerce/customize-woocommerce-variation-text/ https://diviengine.com/snippets/divi-bodycommerce/customize-woocommerce-variation-text/#respond Wed, 22 May 2024 14:34:28 +0000 https://diviengine.com/?post_type=snippets&p=19370900 This code snippet for WooCommerce or Divi BodyCommerce allows you to customize the text for your variable products as they are displayed in the product loop. This code should be added to the functions.php file of your child theme and can be customized to display formats like “From…”, “Starting at..”, etc instead of the default […]

The post Customize WooCommerce Variation Text appeared first on Divi Engine.

]]>
This code snippet for WooCommerce or Divi BodyCommerce allows you to customize the text for your variable products as they are displayed in the product loop. This code should be added to the functions.php file of your child theme and can be customized to display formats like “From…”, “Starting at..”, etc instead of the default min to max pricing format.

The post Customize WooCommerce Variation Text appeared first on Divi Engine.

]]>
https://diviengine.com/snippets/divi-bodycommerce/customize-woocommerce-variation-text/feed/ 0
Divi Text Module with Animated Shadow Gradient https://diviengine.com/snippets/divi/divi-text-module-with-animated-shadow-gradient/ https://diviengine.com/snippets/divi/divi-text-module-with-animated-shadow-gradient/#respond Tue, 30 Apr 2024 08:51:37 +0000 https://diviengine.com/?post_type=snippets&p=19370440 In this Divi Code Snippet, we will target the Divi Button Module to add a colorful animated gradient fill on the text, as well as an awesome gradient shadow. I am expanding on another snippet we did where we added the same effect, but not animated. You can add the CSS in either a code […]

The post Divi Text Module with Animated Shadow Gradient appeared first on Divi Engine.

]]>
In this Divi Code Snippet, we will target the Divi Button Module to add a colorful animated gradient fill on the text, as well as an awesome gradient shadow. I am expanding on another snippet we did where we added the same effect, but not animated.

You can add the CSS in either a code module, Divi Theme Options, or the style.css of your Divi Child Theme. Once that is done, just add the de-text-gradient class to the advanced tab of your Divi Text module. You might have to play with the transform: translateY(-15%); to get the shadow in the right spot.

The post Divi Text Module with Animated Shadow Gradient appeared first on Divi Engine.

]]>
https://diviengine.com/snippets/divi/divi-text-module-with-animated-shadow-gradient/feed/ 0
Divi Text Module Gradient with Gradient Shadow https://diviengine.com/snippets/divi/divi-text-module-gradient-with-gradient-shadow/ https://diviengine.com/snippets/divi/divi-text-module-gradient-with-gradient-shadow/#respond Tue, 30 Apr 2024 08:13:49 +0000 https://diviengine.com/?post_type=snippets&p=19370368 In this Divi Code Snippet, we will target the Divi Button Module to add a colorful gradient fill on the text, as well as an awesome gradient shadow. I discovered this method using Tailwind CSS on a reddit post, and figured I would adapt it to work with the Divi Button module. You can add […]

The post Divi Text Module Gradient with Gradient Shadow appeared first on Divi Engine.

]]>
In this Divi Code Snippet, we will target the Divi Button Module to add a colorful gradient fill on the text, as well as an awesome gradient shadow. I discovered this method using Tailwind CSS on a reddit post, and figured I would adapt it to work with the Divi Button module.

You can add the CSS in either a code module, Divi Theme Options, or the style.css of your Divi Child Theme. Once that is done, just make sure to wrap your text in a span tag using the code below. You might have to play with the transform: translateY(-15%); to get the shadow in the right spot.

If you want an animated version of this snippet, please check out our post on a Divi Text Module with Animated Shadow Gradient.

The post Divi Text Module Gradient with Gradient Shadow appeared first on Divi Engine.

]]>
https://diviengine.com/snippets/divi/divi-text-module-gradient-with-gradient-shadow/feed/ 0
Limit the Divi BodyCommerce PP Gallery Module Height https://diviengine.com/snippets/divi-bodycommerce/limit-the-divi-bodycommerce-pp-gallery-module-height/ https://diviengine.com/snippets/divi-bodycommerce/limit-the-divi-bodycommerce-pp-gallery-module-height/#respond Tue, 09 Apr 2024 13:35:51 +0000 https://diviengine.com/?post_type=snippets&p=19369843 This Divi Code Snippet will allow you to limit the Divi BodyCommerce PP Gallery module’s height. You can either limit the height of every gallery on your BodyCommerce website, or apply the height limitation to specific galleries only. The Sale badge might not look the best with this trick. So if you want to remove […]

The post Limit the Divi BodyCommerce PP Gallery Module Height appeared first on Divi Engine.

]]>
This Divi Code Snippet will allow you to limit the Divi BodyCommerce PP Gallery module’s height. You can either limit the height of every gallery on your BodyCommerce website, or apply the height limitation to specific galleries only.

The Sale badge might not look the best with this trick. So if you want to remove the badge from any gallery, just add this class to the advanced tab of that gallery module: remove-onsale-gallery.

The post Limit the Divi BodyCommerce PP Gallery Module Height appeared first on Divi Engine.

]]>
https://diviengine.com/snippets/divi-bodycommerce/limit-the-divi-bodycommerce-pp-gallery-module-height/feed/ 0
Change the Google Map Cluster Icon in Divi Machine Multi-Pin Maps https://diviengine.com/snippets/divi-machine/change-the-google-map-cluster-icon-in-divi-machine-multi-pin-maps/ https://diviengine.com/snippets/divi-machine/change-the-google-map-cluster-icon-in-divi-machine-multi-pin-maps/#respond Tue, 19 Mar 2024 08:31:25 +0000 https://diviengine.com/?post_type=snippets&p=19368237 Google Map Clusters are a great feature in Google Maps which can enrich your Divi Machine Maps with multiple pins in a cluster. This snippet shows you how to change the look of your Google Map Clustered Pins in Divi Machine. We use a combination of images and CSS filters to customize the look, so […]

The post Change the Google Map Cluster Icon in Divi Machine Multi-Pin Maps appeared first on Divi Engine.

]]>
Google Map Clusters are a great feature in Google Maps which can enrich your Divi Machine Maps with multiple pins in a cluster. This snippet shows you how to change the look of your Google Map Clustered Pins in Divi Machine. We use a combination of images and CSS filters to customize the look, so dig in below for more details on how to use this Divi Snippet.

CSS for various filters can be found here: https://developer.mozilla.org/en-US/docs/Web/CSS/filter#syntax

The post Change the Google Map Cluster Icon in Divi Machine Multi-Pin Maps appeared first on Divi Engine.

]]>
https://diviengine.com/snippets/divi-machine/change-the-google-map-cluster-icon-in-divi-machine-multi-pin-maps/feed/ 0
Vanta.js & Three.js Backgrounds for Divi & WordPress https://diviengine.com/snippets/divi/vanta-js-three-js-backgrounds-for-divi-wordpress/ https://diviengine.com/snippets/divi/vanta-js-three-js-backgrounds-for-divi-wordpress/#respond Wed, 06 Mar 2024 15:03:55 +0000 https://diviengine.com/?post_type=snippets&p=19367390 Memorable Divi Header Backgrounds can leave a lasting impression! Elevate the visual experience of your Divi website by incorporating stunning, interactive 3D effects into your header backgrounds. This Divi snippet leverages the power of Vanta.js and Three.js, two renowned JavaScript libraries, to add captivating cloud animations to sections, rows, and modules within Divi. Perfect for […]

The post Vanta.js & Three.js Backgrounds for Divi & WordPress appeared first on Divi Engine.

]]>
Memorable Divi Header Backgrounds can leave a lasting impression!

Elevate the visual experience of your Divi website by incorporating stunning, interactive 3D effects into your header backgrounds. This Divi snippet leverages the power of Vanta.js and Three.js, two renowned JavaScript libraries, to add captivating cloud animations to sections, rows, and modules within Divi. Perfect for designers and developers looking to introduce a dynamic element to their sites, this easy-to-implement code enhances user engagement through beautifully animated backgrounds. Not only does it offer a unique aesthetic appeal, but it also provides interactive functionality, responding to mouse and touch inputs, ensuring a memorable browsing experience. Dive into the world of 3D web design with this seamless integration for Divi, and watch your website come to life like never before.

To get rolling with these, you must first add a selector to the Gutenberg Block, or Divi Section/Row/Module in the advanced tab. Then, just load the Three.js library from the first snippet, then select the Vanta.js effect you want to use, and load the accompanying script. Lastly, copy the parameter JavaScript for the effect in a separate script tag and change the selector to that of your target.

For those interested in exploring more about these awesome libraries, visit Three.js and Vanta.js for additional information and documentation on how to use them to create engaging web experiences.

The post Vanta.js & Three.js Backgrounds for Divi & WordPress appeared first on Divi Engine.

]]>
https://diviengine.com/snippets/divi/vanta-js-three-js-backgrounds-for-divi-wordpress/feed/ 0
Numerical Indexing for Repeated Fields in the Divi Machine Repeater Module https://diviengine.com/snippets/divi-machine/numerical-indexing-for-repeated-fields-in-the-divi-machine-repeater-module/ https://diviengine.com/snippets/divi-machine/numerical-indexing-for-repeated-fields-in-the-divi-machine-repeater-module/#respond Thu, 29 Feb 2024 11:01:49 +0000 https://diviengine.com/?post_type=snippets&p=19367435 Elevate the organization of your Divi Machine grids with our practical CSS snippet that introduces numerical indexing to each item. This ingenious piece of code automatically numbers your grid items, enhancing the readability and navigability of your content. Perfect for galleries, listings, or any repeated group of fields, the snippet ensures your users can follow […]

The post Numerical Indexing for Repeated Fields in the Divi Machine Repeater Module appeared first on Divi Engine.

]]>
Elevate the organization of your Divi Machine grids with our practical CSS snippet that introduces numerical indexing to each item. This ingenious piece of code automatically numbers your grid items, enhancing the readability and navigability of your content. Perfect for galleries, listings, or any repeated group of fields, the snippet ensures your users can follow along effortlessly. Implement this feature to maintain a sleek and professional appearance on your Divi-powered website, making your content not only more accessible but also more engaging. With this addition, keeping track of items in a dynamic grid layout becomes a breeze, providing a polished look and feel for your Divi Machine elements.

The post Numerical Indexing for Repeated Fields in the Divi Machine Repeater Module appeared first on Divi Engine.

]]>
https://diviengine.com/snippets/divi-machine/numerical-indexing-for-repeated-fields-in-the-divi-machine-repeater-module/feed/ 0
Make Your Divi Ajax Filter Sticky on Mobile Devices https://diviengine.com/snippets/divi-ajax-filter/make-your-divi-ajax-filter-sticky-on-mobile-devices/ https://diviengine.com/snippets/divi-ajax-filter/make-your-divi-ajax-filter-sticky-on-mobile-devices/#respond Wed, 21 Feb 2024 13:46:50 +0000 https://diviengine.com/?post_type=snippets&p=19367440 This Divi code snippet enhances the user experience on mobile devices by making the Divi Ajax Filter sticky at the top of the screen, ensuring it remains accessible as users scroll through product or archive lists. Ideal for sites using Divi Machine, Divi Ajax Filter, or Divi BodyCommerce, this CSS tweak requires adding a class […]

The post Make Your Divi Ajax Filter Sticky on Mobile Devices appeared first on Divi Engine.

]]>
This Divi code snippet enhances the user experience on mobile devices by making the Divi Ajax Filter sticky at the top of the screen, ensuring it remains accessible as users scroll through product or archive lists. Ideal for sites using Divi Machine, Divi Ajax Filter, or Divi BodyCommerce, this CSS tweak requires adding a class (sticky-mobile-filter-container-row) to the row containing the filter.

Implementing this Divi code snippet can significantly improve navigation and usability on e-commerce sites, making it easier for customers to apply filters without needing to scroll back to the top.

The post Make Your Divi Ajax Filter Sticky on Mobile Devices appeared first on Divi Engine.

]]>
https://diviengine.com/snippets/divi-ajax-filter/make-your-divi-ajax-filter-sticky-on-mobile-devices/feed/ 0
Confetti Effect When Clicking a Divi Button Module https://diviengine.com/snippets/divi/confetti-effect-when-clicking-a-divi-button-module/ Tue, 23 Jan 2024 14:20:46 +0000 https://diviengine.com/?post_type=snippets&p=259236 Looking to sprinkle some excitement on your Divi Button Module interactions? Here’s a charming tweak for you! With this Divi Code Snippet, you can easily integrate a lively confetti effect into your Divi Button Module. Whenever a user clicks on a button labeled with the .confetti-button class, they’re greeted with a vibrant shower of confetti […]

The post Confetti Effect When Clicking a Divi Button Module appeared first on Divi Engine.

]]>
Looking to sprinkle some excitement on your Divi Button Module interactions? Here’s a charming tweak for you!

With this Divi Code Snippet, you can easily integrate a lively confetti effect into your Divi Button Module. Whenever a user clicks on a button labeled with the .confetti-button class, they’re greeted with a vibrant shower of confetti particles. This addition not only brings a burst of color and joy but also significantly enhances user engagement on your Divi-themed website. It’s an ideal way to add an element of fun and create an unforgettable interactive experience for your users!

Just add the code below and the .confetti-button class to your button on the Advanced Tab.

The post Confetti Effect When Clicking a Divi Button Module appeared first on Divi Engine.

]]>
Confetti Effect When Submitting a Divi Contact Form https://diviengine.com/snippets/divi/confetti-effect-when-submitting-a-divi-contact-form/ Tue, 23 Jan 2024 12:53:44 +0000 https://diviengine.com/?post_type=snippets&p=259160 Are you looking to add a captivating touch to celebrate every time a user submits your Divi Contact Form module? Well, we’ve got just the thing for you! This Divi Code snippet elevates the user experience by introducing a confetti effect to the submission of your Divi Contact Form module. Upon clicking the submit button, […]

The post Confetti Effect When Submitting a Divi Contact Form appeared first on Divi Engine.

]]>
Are you looking to add a captivating touch to celebrate every time a user submits your Divi Contact Form module? Well, we’ve got just the thing for you!

This Divi Code snippet elevates the user experience by introducing a confetti effect to the submission of your Divi Contact Form module. Upon clicking the submit button, some vibrant confetti particles burst onto the screen, crafting an exhilarating visual spectacle. This infusion of excitement and interaction enhances the form submission process on any website built with the Divi theme.

The post Confetti Effect When Submitting a Divi Contact Form appeared first on Divi Engine.

]]>
Confetti Effect when Submitting a Divi Form Builder Form https://diviengine.com/snippets/divi-form-builder/confetti-effect-when-submitting-a-divi-form-builder-form/ Tue, 23 Jan 2024 12:25:06 +0000 https://diviengine.com/?post_type=snippets&p=259228 Ever want a super cool effect to celebrate the fact that a user submitted your Divi Form Builder form? Come on…you know you did! This Divi Code snippet enhances the user experience by adding a confetti effect to a Divi Form Builder form’s submission. When the user clicks the submit button, some colorful confetti particles […]

The post Confetti Effect when Submitting a Divi Form Builder Form appeared first on Divi Engine.

]]>
Ever want a super cool effect to celebrate the fact that a user submitted your Divi Form Builder form? Come on…you know you did!

This Divi Code snippet enhances the user experience by adding a confetti effect to a Divi Form Builder form’s submission. When the user clicks the submit button, some colorful confetti particles scatter across the screen, creating a celebratory visual effect. This adds an element of fun and engagement to the form submission process on a website built with the Divi theme.

The post Confetti Effect when Submitting a Divi Form Builder Form appeared first on Divi Engine.

]]>
Reverse Loop Layout Columns https://diviengine.com/snippets/divi-machine/reverse-loop-layout-columns/ Mon, 22 Jan 2024 21:23:49 +0000 https://diviengine.com/?post_type=snippets&p=256745 This Divi Machine code snippet introduces a dynamic way to reverse the column order in loop layouts at specified intervals. This allows for flexible column arrangement changes in the Divi Machine Archive Loop module using simple CSS. Ideal for enhancing your website’s layout with a touch of creativity.

The post Reverse Loop Layout Columns appeared first on Divi Engine.

]]>
This Divi Machine code snippet introduces a dynamic way to reverse the column order in loop layouts at specified intervals. This allows for flexible column arrangement changes in the Divi Machine Archive Loop module using simple CSS. Ideal for enhancing your website’s layout with a touch of creativity.

The post Reverse Loop Layout Columns appeared first on Divi Engine.

]]>