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
gtag("event", "purchase", { | |
transaction_id: "{{ order.order_number }}", | |
affiliation: "Google Merchandise Store", | |
value: {{ total_price | times: 0.01 }}, | |
tax: {{ tax_price | times: 0.01 }}, | |
shipping: {{ shipping_price | times: 0.01 }}, | |
currency: "{{ order.currency }}", | |
coupon: "{{ order.discount_application.title }}", // needs testing | |
items: [ | |
{% for line_item in line_items %}{ |
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
.flexslider .flex-direction-nav .flex-next { | |
right: 5px; /* adjust offset to match the hover style */ | |
opacity: .8; /* adjust opacity to match the hover style */ | |
} | |
.flexslider .flex-direction-nav .flex-prev { | |
left: 5px; /* adjust offset to match the hover style */ | |
opacity: .8; /* adjust opacity to match the hover style */ | |
} |
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 | |
/** | |
* Filter the upload size limit for non-administrators. | |
* | |
* @param string $size Upload size limit (in bytes). | |
* @return int (maybe) Filtered size limit. | |
*/ | |
function filter_site_upload_size_limit( $size ) { | |
$size = 60 * 1024 * 1024; | |
return $size; |
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
# open host file | |
sudo nano /private/etc/hosts | |
# clear DNS cache | |
dscacheutil -flushcache;sudo killall -HUP mDNSResponder |
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
# ignore everything in the root except the "wp-content" directory. | |
/* | |
!wp-content/ | |
# ignore everything in the "wp-content" directory, except: | |
# mu-plugins, plugins, and themes directories | |
wp-content/* | |
!wp-content/mu-plugins/ | |
!wp-content/plugins/ | |
!wp-content/themes/ |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
# uploaded files | |
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] |
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 | |
/* | |
* get the abbreviated language code from get_locale() | |
*/ | |
public function get_locale_abbr() { | |
return strtok( get_locale(), "_" ); | |
} |
NewerOlder