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
.ote_bgcolor { | |
position: relative; | |
border-radius: 16px; | |
z-index: 1; | |
border:0!important; | |
} | |
.ote_bgcolor:hover { | |
position: relative; | |
border-radius: 16px; | |
} |
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 featured_product_search_ajax_shortcode() { | |
ob_start(); | |
?> | |
<div id="product-search-wrap"> | |
<input type="text" id="product-search" placeholder="Search for products I posted by name or keyword.."> | |
</div> | |
<h3 class="product_heading">Featured Products</h3> | |
<div id="product-results">Loading products...</div> |
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 | |
/* Register Custom Post Types */ | |
function cwptheme_post_type() { | |
$post_types_arr = array( 'Amenities', 'Principles', 'Investments' ); | |
foreach( $post_types_arr as $post_type_a){ | |
$labels = array( | |
'name' => __( $post_type_a ), |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Dynamic Popup content from custom post type | |
https://www.youtube.com/watch?v=9lMGc1fQa3Q&pp=ygUnRHluYW1pYyBQb3N0IFBvcHVwIFdpZGdldCBmb3IgRWxlbWVudG9y | |
<style> | |
.container { | |
display: none; /* Hide all containers by default */ | |
} | |
.button_style { | |
pointer-events: auto; |
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 cs_footer() { ?> | |
<script> | |
jQuery(function($){ | |
$(document).on('click','.elementor-location-popup a', function(event){ | |
elementorProFrontend.modules.popup.closePopup( {}, event); | |
}); | |
}); | |
</script> |
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 | |
/** | |
* Adding Checkbox and Price Field in Product Admin Panel | |
*/ | |
function custom_add_envelope_checkbox_and_price() { | |
echo '<div class="custom-envelop-checkbox">'; | |
// Envelope activation checkbox | |
woocommerce_wp_checkbox( array( |
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 add_userback_script() { | |
?> | |
<script> | |
window.Userback = window.Userback || {}; | |
Userback.access_token = 'A-7VARVgBtpJtf80JEeZRR9LRpK'; | |
// identify your logged-in users (optional) | |
Userback.user_data = { | |
id: "123456", // example data |
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
// assign class counter on text span | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/waypoints/2.0.3/waypoints.min.js'></script> | |
<script src='https://cdn.jsdelivr.net/jquery.counterup/1.0/jquery.counterup.min.js'></script> | |
<script> | |
$('.counter').counterUp({ | |
delay: 10, | |
time: 1000 | |
}); |
NewerOlder