CLEAN & MINIFY ASSETS

HTML: CSS: Use CleanCSS or Webpack to minify. cleancss -o style.min.css style.css JS: Use Terser or Webpack. terser main.js -o main.min.js –compress –mangleContinue reading

kindle

Why the 2024 Kindle Paperwhite Is the Best E‑Reader Yet Looking for your next e‑reader? Amazon’s 2024 Kindle Paperwhite series raises the bar with speedier performance, a crisper screen, and features that delight both casual readers and A‑listers alike. Disclosure:…Continue reading

Product order WooCommerce

// Force alphabetical sorting on all product pages add_action(‘woocommerce_product_query’, function($q) { if (is_shop() || is_product_category() || is_product_tag()) { $q->set(‘orderby’, ‘title’); $q->set(‘order’, ‘ASC’); } });Continue reading

Ngăn WP cắt ảnh

add_filter(‘intermediate_image_sizes_advanced’, function ($sizes) { $sizes = array( ‘thumbnail’ => $sizes[‘thumbnail’], // Giữ lại thumbnail ‘medium’ => $sizes[‘medium’], // Giữ lại medium //’medium_large’ => $sizes[‘medium_large’], // Giữ lại medium_large ‘large’ => $sizes[‘large’], // Giữ lại large //’1536×1536′ => $sizes[‘1536×1536′], // Giữ…Continue reading

registering query args as smart tag on campaign load

document.addEventListener(‘om.Campaign.load’, function(event) { const queryString = window.location.search; // capture all query args // Registers a custom `query_args` smart tag that outputs all query args from the current page. event.detail.Campaign.Dtr.setCustomVariable(‘query_args’, queryString); });Continue reading

Style ALL Placeholder Text on Your Website

::-webkit-input-placeholder { color: #333 !important; } /* Chrome/Opera/Safari */ ::-moz-placeholder { color: #333 !important; } /* firefox 19+ */ :-ms-input-placeholder { color: #333 !important; } /* ie */ :-moz-placeholder { color: #333 !important; } /*below firefox 19 */Continue reading