Account Settings

Winkelwagen

De winkelwagen is nog leeg

Website Settings

Dondere modus
Hoog contrast
Font grootte
Lees pagina-inhoud
Afdrukken
Realtime
  • Datum: 19-02-2026
  • Week: 08
  • Weer:
  • Seizoen: Winter

Editor-style.css function no caching

particle

// load editor style direct as admin without caching add_action(‘admin_enqueue_scripts’, function(){ if(is_admin()){ – add_editor_style(get_template_directory_uri().’editor-style.css?1′); + add_editor_style(get_template_directory_uri().’/editor-style.css’); } });

Loop number in list

particle

// 15. asterix list // ————- @mixin loop-number { $star : ‘*’; @for $i from 1 through 10 { &:nth-child(#{$i}) { &:before { content: “#{$star}”; } } $star : $star + ‘*’; } } ul li { @include loop-number;}

WooCommerce: Disable Shipping Rate if Cart has Shipping Class

particle

/** * @snippet Disable Free Shipping if Cart has Shipping Class (WooCommerce 2.6+) * @how-to Watch tutorial @ https://businessbloomer.com/?p=19055 * @sourcecode https://businessbloomer.com/?p=19960 * @author Rodolfo Melogli * @testedwith WooCommerce 2.6.1 */ add_filter( ‘woocommerce_package_rates’, ‘businessbloomer_hide_free_shipping_for_shipping_class’, 10, 2 ); function businessbloomer_hide_free_shipping_for_shipping_class( $rates, $package ) { //Shipping class D $shipping_class_target = 431; $in_cart = false; foreach( WC()->cart->cart_contents as […]

defer=”defer”

particle

verteld de browser om te wachten tot hij klaar is met inladen. https://stackoverflow.com/questions/5250412/how-exactly-does-script-defer-defer-work https://bitsofco.de/async-vs-defer/

feautred image in rss feed

particle

// Ads featured image to rss feed add_filter( ’the_content’, ‘featured_image_in_feed’ ); function featured_image_in_feed( $content ) { global $post; if( is_feed() ) { if ( has_post_thumbnail( $post->ID ) ){ $output = get_the_post_thumbnail( $post->ID, ‘medium’, array( ‘style’ => ‘float:right; margin:0 0 10px 10px;’ ) ); $content = $output . $content; } } return $content; } of

rss templates

particle

/** * Deal with the custom RSS templates. */ function my_custom_rss() { if ( ‘event’ === get_query_var( ‘post_type’ ) ) { get_template_part( ‘page-templates/feed’, ‘events’ ); } else { get_template_part( ‘page-templates/feed’, ‘rss2’ ); } } remove_all_actions( ‘do_feed_rss2’ ); add_action( ‘do_feed_rss2’, ‘my_custom_rss’, 10, 1 );

Home