This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// adding a new role // | |
add_role( 'pending', __('Pending' ),array( | |
'read' => true, | |
) | |
); | |
// Assigning a new role // | |
add_filter('woocommerce_new_customer_data', 'abdurrehman_net_custom_role', 10, 1); | |
function abdurrehman_net_custom_role($args) { | |
$args['role'] = 'pending'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'MyWebFont'; | |
src: url('path-to-your-font-directory/font_name.eot'); | |
src: url('path-to-your-font-directory/font_name.eot?#iefix') format('embedded-opentype'), | |
url('path-to-your-font-directory/font_name.woff') format('woff'), | |
url('path-to-your-font-directory/font_name.ttf') format('truetype'), | |
url('path-to-your-font-directory/font_name.svg#svgFontName') format('svg'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-family: 'MyWebFont', sans-serif; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url(//fonts.googleapis.com/css?family=Open+Sans); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-family: 'Open Sans', sans-serif; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name yoursite.com www.yoursite.com; | |
return 301 https://yoursite.com$request_uri; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define('FORCE_SSL_ADMIN', true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function abdurrehman_rm_z_woo() { | |
remove_theme_support( 'wc-product-gallery-zoom' ); | |
} | |
add_action( 'after_setup_theme', 'abdurrehman_rm_z_woo', 11 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'after_setup_theme', 'abdurrehman_th_woo' ); | |
function abdurrehman_th_woo() { | |
add_theme_support( 'wc-product-gallery-zoom' ); | |
add_theme_support( 'wc-product-gallery-lightbox' ); | |
add_theme_support( 'wc-product-gallery-slider' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* WooCommerce 3.0 Gallery */ | |
.woocommerce-product-gallery { | |
position: relative; | |
margin-bottom: 3em | |
} | |
.woocommerce-product-gallery figure { | |
margin: 0 | |
} |