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
$argsref = array( | |
'post_type' => 'referenz', | |
'posts_per_page' => -1, | |
'meta_query' => array( | |
'key' => 'kp_referenz_featured', //checkbox created with acf | |
'value' => '1' // check if true | |
) | |
); |
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
// check original function befor override | |
remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10); | |
add_action( 'woocommerce_shop_loop_item_title', 'add_custom_title', 10); | |
function add_custom_title() { | |
echo '<h2 class="woocommerce-loop-product__title">'.str_replace('ß', 'ss', get_the_title()).'</h2>'; | |
} |
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
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { | |
#myElement { | |
/* Enter your style code */ | |
} | |
} |
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
$blogcat = get_terms('cl-post-tax'); | |
// Always show link in WP backend on custom post type or posts category | |
(example: https://clevis.sunlime.io/wp-admin/edit-tags.php?taxonomy=cl-post-tax&post_type=cl-post) | |
... | |
if($the_query->have_posts()) : | |
echo '<div class="category-filter">'; |
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 echo get_stylesheet_directory_uri(); ?>/assets/img/favicon.ico" |
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
//http://jsfiddle.net/RokoCB/tw6g2oeu/7/ | |
(function($, win) { | |
$.fn.inViewport = function(cb) { | |
return this.each(function(i,el){ | |
function visPx(){ | |
var H = $(this).height(), | |
r = el.getBoundingClientRect(), t=r.top, b=r.bottom; | |
return cb.call(el, Math.max(0, t>0? H-t : (b<H?b:H))); | |
} visPx(); |
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
// get page ID with objct post | |
$custompageid = get_field('anfrageseite_id', 'option'); // 'options' is standard value!!! |
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
https://code.tutsplus.com/tutorials/dynamically-adding-four-footer-widget-areas--cms-22168 |