Skip to content

Instantly share code, notes, and snippets.

View elias1435's full-sized avatar
๐Ÿ•‹
Working from home

Md. Elias elias1435

๐Ÿ•‹
Working from home
View GitHub Profile
@elias1435
elias1435 / style.css
Created April 5, 2024 18:54
number input field increase and decrease handler always display with css only
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
opacity: 1
}
@elias1435
elias1435 / functions.php
Created April 10, 2024 09:24
Add tracking code only in woocommerce order received page
/**
* Add tracking code on Order received/thank you page.
*
* @return void
*/
function md_thankyou_page_tracking_code() {
if ( ! is_wc_endpoint_url( 'order-received' ) ) {
return;
}
?>
@elias1435
elias1435 / Read-More.txt
Created April 16, 2024 15:51
how to enable dark mood in chrome and css media query
# How to emulate/activate prefers-color-scheme on Chrome (Desktop):
1. Press F12 key (or Command+Shift+C on Mac)
2. Click on the tree dots symbol (customize and control DevTools)
3. Point your mouse on the more tools option, and then click in rendering option.
4. The option Emulate CSS media feature prefers-color-scheme near the end it's your destination !
# How to emulate/activate prefers-color-scheme on Chrome (Mobile):
1. Click on the tree dots symbol.