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 | |
function free_shipping_based_on_cart_shipping_class( $is_available ) { | |
$cart_items = WC()->cart->get_cart(); | |
foreach ( $cart_items as $cart_item ) { | |
$product = $cart_item['data']; | |
$class = $product->get_shipping_class(); | |
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
/* XING Social Icon Classes | |
--------------------------------------------------------------- */ | |
#top-header .custom-social-icon a { | |
font-size: 14px; | |
line-height: 1em; | |
} | |
.custom-social-icon a { | |
display: inline-block; | |
position: relative; | |
color: #666; |
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
/* XING for Divi Font-Face Import | |
--------------------------------------------------------------- */ | |
@font-face { | |
font-family: 'xing'; | |
src: url('fonts/xing.eot?2a5kpv'); | |
src: url('fonts/xing.eot?2a5kpv#iefix') format('embedded-opentype'), | |
url('fonts/xing.ttf?2a5kpv') format('truetype'), | |
url('fonts/xing.woff?2a5kpv') format('woff'), | |
url('fonts/xing.svg?2a5kpv#icomoon') format('svg'); | |
font-weight: normal; |
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 | |
function event_pre_get_posts( $query ) { | |
// modify queries for 'event' post type only | |
if( isset( $query->query_vars['post_type'] ) && $query->query_vars['post_type'] == 'event' ) { | |
$query->set('orderby', 'meta_value'); | |
$query->set('meta_key', 'eventdetails_eventday_1'); | |
$query->set('order', 'ASC'); |
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
(function($) { | |
var $select = $('#wc_checkout_add_ons_1'); | |
$select.change(function () { | |
if ( $(this).val() == 'none' ) { | |
hideFields(); | |
} else { | |
showFields(); |
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 | |
function toggle_checkout_add_ons_enqueue() { | |
if( is_page( 'checkout' ) ) { | |
wp_enqueue_script( 'mytheme-tcao-js', get_stylesheet_directory_uri() . '/js/toggle_checkout_add_ons.js', array('jquery'), '1.0', true); | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'toggle_checkout_add_ons_enqueue' ); |
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
<script> | |
(function( $ ) { | |
$( '.et_pb_toggle' ).hover(function() { | |
$( this ).children( 'h5' ).trigger( 'click' ); | |
}); | |
})( jQuery ); | |
</script> |
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 | |
function wdt_dashboard_widget_content() { | |
echo '<h3>Images</h3> | |
<ul> | |
<li>Featured 1080×608px</li> | |
<li>Person 600×600px</li> | |
<li>Sponsor Logo 400×200px</li> | |
</ul>'; | |
echo '<h3>Colors</h3> | |
<ul> |
OlderNewer