This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($){ | |
$('.slide-stuff').slick({ // Define the class which will be used to designate the parent container for the Divi Modules that will make up our slides | |
infinite: true, // This sets our slider to slide infinitely in a loop | |
slidesToShow: 3, // How many slides should be visible at all times | |
slidesToScroll: 1 // How many slides should scroll | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copy and paste this block of code to the functions.php file of your child theme | |
function divi_engine_custom_mime_types( $mimes ) { | |
// Add your additional allowed mime types here from the list above. | |
$mimes['csv'] = 'text/csv'; //copy or modify this line to add different mime types | |
// Optionally, you can also remove MIME-types. | |
unset( $mimes['exe'] ); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Add this code above the "That’s all, stop editing. Happy blogging." comment */ | |
define('ALLOW_UNFILTERED_UPLOADS', true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Focus-in CSS Animation Class to be added to the Divi module that you want to animate */ | |
.de-focus-in { | |
-webkit-animation: de-focus-in 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; | |
animation: de-focus-in 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; | |
} | |
/* Focus-in CSS Animation Keyframes */ | |
@-webkit-keyframes de-focus-in { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Pop-up CSS Animation Class to be added to the Divi module that you want to animate */ | |
.de-text-pop-up { | |
-webkit-animation: de-text-pop-up 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; | |
animation: de-text-pop-up 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; | |
} | |
/* Keyframes for the Pop-up CSS Animation */ | |
@-webkit-keyframes de-text-pop-up { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Wiggle CSS Animation Class to be added to the Divi module that you want to animate */ | |
.de-wobble { | |
-webkit-animation: de-wobble 2.8s both infinite; | |
animation: de-wobble 2.8s both infinite; | |
text-align: center; | |
} | |
/* Keyframes for the wobble animation */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.de-colorchange { | |
animation: colorchange 4s infinite; | |
} | |
@keyframes colorchange { | |
0% {background-color: red;} | |
25% {background-color: green;} | |
75% {background-color: blue;} | |
100% {background-color: yellow;} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** Responsive Styles Extra Large Desktop And Above ***/ | |
@media all and (min-width: 1405px) { | |
YOUR CSS HERE | |
} | |
/*** Responsive Styles Standard Desktop Only ***/ | |
@media all and (min-width: 1100px) and (max-width: 1405px) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.de-breakpoint:after { | |
Content: "Extra Large Desktop"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Apply Coupon Code automatically to the cart | |
*/ | |
function divi_engine_apply_discount_to_cart() { | |
$order_total = WC()->cart->get_subtotal(); | |
if( $order_total > 50 ) { //Here you set the condition which in this case is spend over $50 | |
$coupon_code = '20%OFF'; //Here you indicate which coupon code to apply | |
if ( !WC()->cart->add_discount( sanitize_text_field( $coupon_code ) ) ) { |