- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 bto_create_builder_coupon($user_id) { // need to pass user data to this function | |
if( is_callable( 'gf_coupons' ) ) { | |
$user = get_user_by( 'id', $user_id ); | |
//$meta['gravityForm'] = $form_id ? $form_id : 0; | |
$form_id = '16'; // would like this to be 0. Have tried 0, '0', and specific form id. Nothing is working properly. | |
$meta['couponName'] = $user->user_login . date('M d, Y'); | |
//$coupon_code = substr($user->user_firstname,0, 1) . substr($user->user_lastname, 0, 3) . date('ymd'); | |
$meta['couponCode'] = strtoupper($user->user_login . date('ymd')); | |
$meta['couponAmountType'] = 'percentage'; | |
$meta['couponAmount'] = 100; |
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
/* Remove Query Strings from static resources */ | |
/* Add to functions.php */ | |
function _remove_script_version( $src ){ | |
$parts = explode( '?ver', $src ); | |
return $parts[0]; | |
} | |
add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); | |
add_filter( 'style_loader_src', '_remove_script_version', 15, 1 ); |
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
// Change number or products per row to 3 | |
add_filter('loop_shop_columns', 'loop_columns'); | |
if (!function_exists('loop_columns')) { | |
function loop_columns() { | |
return 3; // 3 products per row | |
} | |
} |
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
ini_set('log_errors','On'); | |
ini_set('display_errors','Off'); | |
ini_set('error_reporting', E_ALL ); | |
define('WP_DEBUG', false); | |
define('WP_DEBUG_LOG', true); | |
define('WP_DEBUG_DISPLAY', false); |
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
# Block WordPress xmlrpc.php requests | |
<Files xmlrpc.php> | |
order deny,allow | |
deny from all | |
</Files> |
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 | |
/** | |
* @author Terri Orlowski | |
* @example http://torlowski.me/ | |
* @copyright 2016 Terri Orlowski | |
*/ | |
//* Remove the post meta function | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta',6 ); |
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 ( $homepage_query->have_posts() ) : ?> | |
<?php $counter=1; ?> | |
<?php while ( $homepage_query->have_posts() ) : $homepage_query->the_post(); ?> | |
<?php if (!$counter%2==0) { ?> | |
<div class="product row"> | |
<div class="product-image col-xs-12 col-md-6 col-md-push-6"> | |
<?php the_post_thumbnail(); ?> | |
</div><!-- .product-image --> | |
<div class="product-desc col-xs-12 col-md-6 col-md-pull-6"> | |
<h3><a href="<?php echo get_permalink( $homepage_query->post->ID ) ?>"><?php the_title(); ?></a></h3> |
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
*|FEEDBLOCK:http://www.example.com/feed/|**|FEEDITEMS:[$count=3]|* | |
<h3><a href="*|FEEDITEM:URL|*">*|FEEDITEM:TITLE|*</a></h3> | |
| |
<div style="float:right; margin-left:15px;">*|FEEDITEM:IMAGE|*</div> | |
*|FEEDITEM:CONTENT_TEXT|*<br /> | |
<br /> | |
Read the entire post at <a href="*|FEEDITEM:URL|*">*|FEEDITEM:URL|*</a><br /> | |
<br /> | |
<br /> |
OlderNewer