Skip to content

Instantly share code, notes, and snippets.

View sabbirshawon's full-sized avatar

Sabbir Ahmed sabbirshawon

View GitHub Profile
/* (320x480) iPhone (Original, 3G, 3GS) */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
/* insert styles here */
}
/* (320x480) Smartphone, Portrait */
@media only screen and (device-width: 320px) and (orientation: portrait) {
/* insert styles here */
}
@sabbirshawon
sabbirshawon / putJson.php
Last active August 1, 2023 17:48
put multiple json data using php curl and save response to csv
<?php
$data = file_get_contents("test.json");
$json_a = json_decode($data, true);
$fp = fopen('file.csv', 'w');
foreach($json_a as $rows){
$url = 'http://';
@sabbirshawon
sabbirshawon / media-query.css
Last active January 7, 2019 14:12
CSS Media Queries for Desktop, Tablet & Mobile.
/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen and (min-width : 321px) {
/* Styles */
}
@sabbirshawon
sabbirshawon / functions.php
Created May 4, 2018 00:28
rename woocommerce single product page tab
<?php
add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
function woo_rename_tabs( $tabs ) {
$tabs['description']['title'] = __( 'Specifications' ); // Rename the description tab
$tabs['additional_information']['title'] = __( 'Ordering Information' ); // Rename the additional information tab
return $tabs;
}