Skip to content

Instantly share code, notes, and snippets.

$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">';
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
#myElement {
/* Enter your style code */
}
}
// 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>';
}
$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
)
);
.child {
position: absolute;
top: 50%; /* position the top edge of the element at the middle of the parent */
left: 50%; /* position the left edge of the element at the middle of the parent */
transform: translate(-50%, -50%); /* This is a shorthand of
translateX(-50%) and translateY(-50%) */
}
font-feature-settings: 'liga'; /* Support for IE */
$(window).load(function () {
// Do something
});
html {
scroll-behavior: smooth;
}
#!/bin/bash
/usr/local/bin/edis-php-cli-71-stable-openssl -d memory_limit=2G /usr/bin/composer_binary "$@"
// call
./composer-exec.sh