This file contains 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
@media all and (min-width: 768px) { | |
.et_pb_posts img, .archive .post img, .category .post img, .search .post img, .blog .post img { | |
float: left; | |
margin-right: 1em; | |
} | |
.et_pb_posts article:after, .archive article:after, .category article:after, .search article:after, .blog article:after { /* Clear floated image */ | |
content: ""; | |
display: table; | |
clear: both; | |
} |
This file contains 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
.background-fade .et_pb_slide:after { | |
position: absolute; | |
content: ''; | |
top: 0; | |
right: 0; | |
left: 0; | |
bottom: 0; | |
background-color:rgba(0,0,0,.5); | |
} |
This file contains 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
.background-fade .et_pb_slide.et_pb_bg_layout_light:after { | |
position: absolute; | |
content: ''; | |
top: 0; | |
right: 0; | |
left: 0; | |
bottom: 0; | |
background-color:rgba(255,255,255,.7); | |
} |
This file contains 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
.background-fade .et_pb_slide.et_pb_bg_layout_dark:after { | |
position: absolute; | |
content: ''; | |
top: 0; | |
right: 0; | |
left: 0; | |
bottom: 0; | |
animation: customFadeToDark 3s ease-out 1s 1 both; | |
-webkit-animation: customFadeToDark 3s ease-out 1s 1 both; | |
} |
This file contains 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
<?php | |
/** | |
* Remove Divi sidebar from all WooCommerce Product pages (as well as Shop and Category pages) | |
*/ | |
function mytheme_divi_output_content_wrapper_end() { | |
echo ' | |
</div> <!-- #left-area --> | |
</div> <!-- #content-area --> | |
</div> <!-- .container --> |
This file contains 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
<?php | |
/** | |
* Remove Divi sidebar from all WooCommerce Product pages | |
*/ | |
function mytheme_divi_output_content_wrapper_end() { | |
echo ' | |
</div> <!-- #left-area --> | |
</div> <!-- #content-area --> | |
</div> <!-- .container --> | |
</div> <!-- #main-content -->'; |
This file contains 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
public function __construct() { | |
// Stop any PDFs from being immediately generated (require Gravity Forms Delayed Email Notifications) | |
add_filter( 'gfpdf_maybe_attach_to_notification', array( $this, 'require_delayed_notifications' ), 10, 5 ); | |
} | |
public function require_delayed_notifications( $attach, $notification, $settings, $entry, $form ) { | |
// Disable Gravity PDF attachment if the notification has a flag (__AFTER_DELAY_FLAG__) letting us know that this notification is supposed to wait until after the delay | |
if ( preg_match( '/__AFTER_DELAY_FLAG__/', $notification['subject'] ) ) { | |
return false; |
This file contains 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
<?php | |
add_action( 'init', function() { | |
if ( method_exists( 'LiteSpeed_Cache_API', 'esi_enabled' ) && LiteSpeed_Cache_API::esi_enabled() ) { | |
LiteSpeed_Cache_API::hook_tpl_not_esi( function () { | |
add_filter( 'wp_nav_menu', function( $nav_menu_html, $args ) { | |
if ( $args->menu_id == "menu-id-to-replace" ) { | |
return LiteSpeed_Cache_API::esi_url( 'my_custom_menu_esi_hook', 'My Menu to Use with ESI' ); | |
} | |
return $nav_menu_html; |
This file contains 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
<?php | |
/** | |
* The Third Party integration with User Switching plugin. | |
* | |
* @since 2.9.9.2 | |
* @package LiteSpeed_Cache | |
* @subpackage LiteSpeed_Cache/thirdparty | |
* @author LiteSpeed Technologies <info@litespeedtech.com> | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { |
This file contains 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
<?php | |
add_action('admin_head', 'yith_divi_color_picker_compatibility'); | |
function yith_divi_color_picker_compatibility() { | |
echo ' | |
<style> | |
.yith-plugin-ui .wp-picker-container a.wp-color-result { | |
width: 30px; | |
height: 30px; | |
box-shadow: none; |