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
$('#classorid').click(function() { | |
$('.classoridnew').addClass("class"); | |
}); |
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 | |
// news | |
add_shortcode( 'news', 'news_shortcode' ); | |
function news_shortcode( $atts ) { | |
extract(shortcode_atts(array( | |
'id' => null | |
), $atts, 'news')); | |
$post_ids = explode(",", strval($id)); | |
ob_start(); |
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
//Cluster init | |
if (s.cluster) { | |
markerCluster = new MarkerClusterer(map, markers, { | |
maxZoom: 12, | |
gridSize: 40, | |
//add image path url | |
imagePath: "https://www.bitcoinatmnearme.com/wp-content/themes/findall/images/m", | |
}); | |
} |
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="sccontent"> | |
<p>default text here</p> | |
<p class="moretext"> | |
more text here | |
</p> | |
</div> | |
<a class="readmore" href="#">Read more</a> | |
<style> | |
.moretext { |
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
tags: [<?php | |
foreach ( get_the_terms( get_the_ID(), 'listing-tag' ) as $tax ) { | |
echo '"' . __( $tax->slug ) . '",'; | |
} | |
foreach ( get_the_terms( get_the_ID(), 'listing-amenity' ) as $tax ) { | |
echo '"' . __( $tax->slug ) . '",'; | |
} | |
foreach ( get_the_terms( get_the_ID(), 'listing-category' ) as $tax ) { | |
echo '"' . __( $tax->slug ) . '",'; | |
} |
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 filter_plugin_updates( $value ) { | |
unset( $value->response['elementor-pro/elementor-pro.php'] ); | |
return $value; | |
} | |
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' ); |
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_filter('posts_clauses', 'order_by_stock_status'); | |
function order_by_stock_status($posts_clauses) { | |
global $wpdb; | |
if (is_woocommerce() && (is_shop() || is_product_category() || is_product_tag() || is_product_taxonomy())) { | |
$posts_clauses['join'] .= " INNER JOIN $wpdb->postmeta istockstatus ON ($wpdb->posts.ID = istockstatus.post_id) "; | |
$posts_clauses['orderby'] = " istockstatus.meta_value ASC, " . $posts_clauses['orderby']; | |
$posts_clauses['where'] = " AND istockstatus.meta_key = '_stock_status' AND istockstatus.meta_value <> '' " . $posts_clauses['where']; | |
} | |
return $posts_clauses; | |
} |
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_filter('woocommerce_default_catalog_orderby', 'misha_default_catalog_orderby'); | |
function misha_default_catalog_orderby($sort_by) | |
{ | |
return 'date'; | |
} |
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
/** | |
* Change number of products that are displayed per page (shop page) | |
*/ | |
add_filter( 'loop_shop_per_page', 'new_loop_shop_per_page', 20 ); | |
function new_loop_shop_per_page( $cols ) { | |
// $cols contains the current number of products per page based on the value stored on Options –> Reading | |
// Return the number of products you wanna show per page. | |
$cols = 9; | |
return $cols; |
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
<script> | |
jQuery(document).ready(function($) { | |
$(document).on('submit_success', '#formsct', function() { | |
$submitted_form = $(this); | |
// $submitted_form.hide(); | |
$(".elementor-form-fields-wrapper").hide(); | |
$('.elementor-message-success').show(); // this is the sucess message that I created. | |
}); |