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 add_marker( $marker, map ) { | |
| // var | |
| var latlng = new google.maps.LatLng( $marker.attr('data-lat'), $marker.attr('data-lng') ); | |
| // create marker | |
| var marker = new google.maps.Marker({ | |
| position : latlng, | |
| map : map, | |
| icon: "http://de-vos.nl//wp-content/themes/devos/img/mapMarker.png" |
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 | |
| // IN FUNCTIONS.PHP FILE CUSTOM LANGUAGE SWITCHER | |
| function language_selector_flags(){ | |
| $languages = icl_get_languages('skip_missing=0&orderby=code'); | |
| if(!empty($languages)){ | |
| echo '<ul class="menu language-menu">'; | |
| foreach($languages as $l){ | |
| if($l['active'] == 1){ $class = 'lang_sel_sel'; } | |
| elseif ($l['active'] == 0) { |
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
| /** | |
| * Extend WordPress search to include custom fields | |
| * | |
| * http://adambalee.com | |
| */ | |
| /** | |
| * Join posts and postmeta tables | |
| * | |
| * http://codex.wordpress.org/Plugin_API/Filter_Reference/posts_join |
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 primrose_child_add_remove(){ | |
| remove_action( 'woocommerce_before_shop_loop', 'primrose_woocommerce_subcategories', 10 ); | |
| add_action( 'woocommerce_before_shop_loop', 'primrose_child_woocommerce_subcategories', 10 ); | |
| } | |
| add_action('init','primrose_child_add_remove'); |
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
| global $post; | |
| $terms = get_the_terms( $post->ID, 'product_cat' ); | |
| foreach ($terms as $term) { | |
| $product_cat_id = $term->term_id; | |
| break; | |
| } |
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
| functions.php | |
| /** | |
| * WooCommerce - add symbol after price | |
| */ | |
| add_filter( 'woocommerce_get_price_html', 'kd_custom_price_message' ); | |
| add_filter( 'woocommerce_cart_item_price', 'kd_custom_price_message' ); | |
| add_filter( 'woocommerce_cart_item_subtotal', 'kd_custom_price_message' ); // added | |
| add_filter( 'woocommerce_cart_subtotal', 'kd_custom_price_message' ); // added | |
| add_filter( 'woocommerce_cart_total', 'kd_custom_price_message' ); // added |
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 | |
| // Add theme support for custom logo as it is required for WordPress 4.5 onwards | |
| add_theme_support( 'custom-logo', array( | |
| 'width' => 367, | |
| 'height' => 92, | |
| 'flex-width' => true, | |
| 'flex-height' => true | |
| ) | |
| ); | |