View override-Essential_Addons_Elementor-template-render-output.php
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 | |
/* | |
an example of how to add an extra field to an elementor section | |
and then override the ouput of the Elementor Essentials Addons template render | |
this should go to your child theme functions.php | |
More info at: https://www.nitroweb.gr/how-to-override-elementor-essentials-addons-template-render-output/ | |
*/ | |
add_action( 'elementor/element/before_section_end', function( $element, $section_id, $args ) { | |
/** @var \Elementor\Element_Base $element */ |
View isotope infinite load.js
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
jQuery(document).ready(function() { | |
jQuery(function(){ | |
var $grid = jQuery(".isotope"); | |
$grid.isotope(); | |
jQuery(window).trigger('resize'); | |
console.log('triggered resize'); | |
var count = 2; | |
var total = 251; |
View facetwp put zero price last.php
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_filter( 'facetwp_filtered_post_ids', 'car_zero_priced_last', 10, 2); | |
function car_zero_priced_last( $post_ids, $class ) { | |
if (!isset($class->ajax_params['http_params']['get']['fwp_sort'])) { | |
return $post_ids; | |
} | |
if (isset($class->ajax_params['http_params']['get']['fwp_sort']) && $class->ajax_params['http_params']['get']['fwp_sort'] != 'price_asc') { | |
return $post_ids; |
View car-functions.php
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_filter( 'facetwp_filtered_post_ids', 'car_zero_priced_last', 10, 2); | |
function car_zero_priced_last( $post_ids, $class ) { | |
if (!isset($class->ajax_params['http_params']['get']['fwp_sort'])) { | |
return $post_ids; | |
} | |
if (isset($class->ajax_params['http_params']['get']['fwp_sort']) && $class->ajax_params['http_params']['get']['fwp_sort'] != 'price_asc') { | |
return $post_ids; |
View infowindow open trigger
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
// The function to trigger the marker click, 'id' is the reference index to the 'markers' array. | |
function markerClick(id){ | |
google.maps.event.trigger(markers[id], 'click'); | |
} | |
// this should be on the loop creating the markers | |
google.maps.event.addListener(marker, 'click', (function(marker, i) { | |
return function() { | |
infowindow.open(map, marker); | |
} |