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
function add_password_protection_script() { | |
if (post_password_required()) { | |
?> | |
<script> | |
document.addEventListener('DOMContentLoaded', function() { | |
var mainArea = document.getElementById('main-content'); | |
if (mainArea) { | |
// Clear the existing content | |
mainArea.innerHTML = ''; |
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
$("img").hover( | |
function() { | |
// On mouse hover | |
$(this).data("title", $(this).attr("title")).removeAttr("title"); | |
}, | |
function() { | |
// On mouse leave | |
$(this).attr("title", $(this).data("title")); | |
} | |
); |
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_action( 'wp', function() { | |
if ( ! function_exists( 'et_core_is_fb_enabled' ) ) return; | |
if ( et_core_is_fb_enabled() ) { | |
add_filter ( 'pum_popup_is_loadable', function($is_loadable) { | |
$is_loadable = false; | |
return $is_loadable; | |
} ); | |
} | |
}); |
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
jQuerywindow = jQuery(window); | |
var jQuerymobile_slick_slider = jQuery('.mobile-post-slider section,.solutions-posts .fusion-posts-container,.members-block-container .fusion-builder-row'); | |
settings = { | |
slidesToShow: 1, | |
slidesToScroll: 1, | |
arrows: false, | |
dots: true, | |
responsive: [ | |
{ | |
breakpoint: 9999, |
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
.slick-dots li:only-child { | |
display: none; | |
} |
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
.parent-class a:not([href]) { | |
display: none; | |
} |
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
.megamenu-tab-content figure img[src=''] { | |
visibility: hidden; | |
display: none; | |
height: 0; | |
} |
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
if ($("#product-overview").children().length == 0) { | |
$("#product-overview").addClass("empty-overview"); | |
} |
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
if ($(".single-forklift-gallery .fusion-gallery").hasClass("fusion-columns-total-0")) { | |
$(".single-forklift-gallery").addClass("empty"); | |
} else { | |
$(".single-forklift-gallery").addClass("not-empty"); | |
}; |
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
function disable_plugin_updates( $value ) { | |
$pluginsNotUpdatable = [ | |
'filebird-pro/filebird.php', | |
'advanced-custom-fields-pro/acf.php' | |
]; | |
if ( isset($value) && is_object($value) ) { | |
foreach ($pluginsNotUpdatable as $plugin) { | |
if ( isset( $value->response[$plugin] ) ) { | |
unset( $value->response[$plugin] ); |
NewerOlder