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
/wp-content/plugins/js_composer/include/autoload/hook-vc-grid.php | |
And edit line 86, from: | |
. '([\\w-_]+)' // 2: Shortcode name | |
to | |
. '([\\w\-_]+)' // 2: Shortcode name |
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('elementor/query/query_results', function($query) { | |
$total = $query->found_posts; | |
if ($total == 0) { | |
echo '<p class="text-align-center">No items found.</p>'; | |
} | |
}); |
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
<div class="loader" style="display:block" ></div> | |
<style type='text/css'> | |
.loader{ | |
display: none; | |
} | |
.loader { | |
position: fixed; | |
left: 0px; | |
top: 0px; |
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
<?php if (is_singular('post_type_here')) { ?> | |
<div class="sc-nav"> | |
<div class="sc_prev-next"><?php previous_post_link('%link', 'Previous') ?></div> | |
<div class="sc_prev-next"><?php next_post_link('%link', 'Next') ?></div> | |
</div><?php } ?> |
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
<?php | |
function getBrowser() | |
{ | |
$user_agent = $_SERVER['HTTP_USER_AGENT']; | |
$browser = "N/A"; | |
$browsers = [ | |
'/msie/i' => 'Internet explorer', | |
'/firefox/i' => 'Firefox', | |
'/safari/i' => 'Safari', |
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
$(window).on('load', function() { | |
var $container = $('.members_results'); | |
$container.imagesLoaded( function() { | |
$container.isotope({ | |
itemSelector : '.block-member', | |
layoutMode : 'masonry', | |
percentPosition: 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
@-webkit-keyframes vertical-moveright{ | |
0%{-webkit-transform:translateX(0);transform:translateX(0)} | |
100%{-webkit-transform:translateX(-100px);transform:translateX(-100px)} | |
} | |
@keyframes vertical-moveright{ | |
0%{-webkit-transform:translateX(0);transform:translateX(0)} | |
100%{-webkit-transform:translateX(-100px);transform:translateX(-100px)} | |
} |
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($){ | |
$(document).on('click','.elementor-location-popup a', function(event){ | |
elementorProFrontend.modules.popup.closePopup( {}, event); | |
}); | |
}); |
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
<button class="btn-l-r btn">Left to Right</button> | |
<button class="btn-r-l btn">Right to Left</button> | |
<button class="btn-t-b btn">Top to Bottom</button> | |
<button class="btn-b-t btn">Bottom to Top</button> | |
button { | |
display: inline-block; |
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 to handle the intersection of the observed element | |
function handleIntersection(entries, observer) { | |
entries.forEach(entry => { | |
const targetSection = document.getElementById('tetosection'); // Replace 'tetosection' with your section's ID | |
if (entry.target === targetSection) { | |
if (entry.isIntersecting) { | |
targetSection.classList.add('highlightsc'); | |
} else { | |
targetSection.classList.remove('highlightsc'); |