This file contains hidden or 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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { | |
dist: { | |
options: { | |
sourcemap: 'none' | |
}, | |
files: { | |
'assets/css/style.css': 'assets/scss/main.scss' |
This file contains hidden or 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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { | |
dist: { | |
options: { | |
sourcemap: 'inline' | |
}, | |
files: { | |
'dist/css/style.css' : 'src/scss/style.scss' |
This file contains hidden or 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
(function IIFE($) { | |
$('.back-to-top').on('click', function(e) { | |
e.preventDefault(); | |
$('html, body').animate({ | |
scrollTop: 0 | |
}, 500); | |
}); | |
})(jQuery); |
This file contains hidden or 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 products_query( $query ) | |
{ | |
if ( ! $query->is_main_query() || is_admin() ) | |
{ | |
return $query; | |
} | |
if ( is_post_type_archive( 'product' ) || is_tax()) | |
{ |
This file contains hidden or 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 product to request list | |
function add_product_id($product_id) { | |
$product_ids = get_product_ids(); | |
// If product id is in array, return | |
if (in_array($product_id, $product_ids)) { | |
return; | |
} |
This file contains hidden or 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
.gform_fields { | |
list-style-type: none; | |
margin-right: -15px; | |
margin-left: -15px; | |
padding: 0; | |
} | |
.gfield { | |
margin-bottom: 15px; | |
padding-right: 15px; |
This file contains hidden or 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 pgp_filter( $query ) { | |
if ( $query->is_main_query() && !is_admin() ) { | |
$query->set( $key, $value ); | |
} | |
} | |
add_action( 'pre_get_posts', 'pgp_filter' ); |
This file contains hidden or 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
*.log | |
advanced-cache.php | |
backup-db/ | |
backups/ | |
blogs.dir/ | |
cache/ | |
upgrade/ | |
uploads/ | |
wp-cache-config.php |
This file contains hidden or 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 | |
if ( ! function_exists( 'pagination' ) ) : | |
function pagination($pages = '') { | |
global $paged; | |
if(empty($paged)) $paged = 1; | |
if($pages == '') |
OlderNewer