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
Country – $geoip_country_code | |
State – $geoip_region | |
City – $geoip_city | |
[geoip] => 1 | |
[geoip-rules] => Array | |
( | |
[0] => Array | |
( | |
[url] => ^/* |
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
<h1>Headline h1</h1> | |
<h2>Headline h2</h2> | |
<hr> | |
<h3>Headline h3</h3> | |
<h4 style="text-align: left;">Headline h4</h4> | |
<p><strong>Lorem</strong> ipsum dolor sit amet, <a href="http://google.com">consectetur adipiscing elit.</a> Nullam ac ante ut nibh laoreet rutrum nec vel enim. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. <del>Aenean</del> eget tellus quis lorem pharetra tincidunt non non odio. <em>Vestibulum</em> sed augue vel dolor accumsan iaculis.</p> | |
<h5>Headline h5</h5> | |
<h6>Headline h6</h6> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | |
<ul> |
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
// Woo commerce change out of stock text | |
add_filter('woocommerce_get_availability', 'availability_filter_func'); | |
function availability_filter_func($availability) | |
{ | |
$availability['availability'] = str_ireplace('Out of stock', 'This item is currently out of stock. Please check back again at a later date.', $availability['availability']); | |
return $availability; | |
} |
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
// Woo commerce thumbnails beneath main product | |
add_filter ( 'woocommerce_product_thumbnails_columns', 'xx_thumb_cols' ); | |
function xx_thumb_cols() { | |
return 4; // .last class applied to every 4th thumbnail | |
} |
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
//Backorder | |
function backordertext($available) { | |
foreach ($available as $i) { | |
$available = strreplace('Available on backorder', 'This item is currently only available for backorder. Please allow 30-45 days from time of order for delivery.', $available); | |
} | |
return $available; | |
} | |
addfilter('woocommercegetavailability', 'backordertext'); |
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
AuthType Basic | |
AuthName "Password Protected Area" | |
AuthUserFile /your/server/path/.htpasswd | |
Require valid-user |
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
127.0.0.1 yoururl.dev |
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
html { font-size: inherit;} | |
body { | |
font-size: 14px; | |
} |
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
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var sass = require('gulp-sass'); | |
var browserSync = require('browser-sync').create(); | |
var reload = browserSync.reload; | |
gulp.task('sass', function () { | |
gulp.src('./assets/styles/**/*.scss') | |
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError)) |
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
//Smooth scroll to member info #details | |
$('a[href*=#jump]').click(function() { | |
if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && location.hostname === this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
return false; |