Skip to content

Instantly share code, notes, and snippets.

View jillmugge's full-sized avatar

Jill jillmugge

View GitHub Profile
@jillmugge
jillmugge / Builder
Created April 22, 2014 14:37
force a specific Builder layout for main shop page and individual product pages
function custom_filter_shop_layout( $layout_id ) {
if ( is_post_type_archive('product') || is_singular( 'product' ))
return '5229da61e6097';
return $layout_id;
}
add_filter( 'builder_filter_current_layout', 'custom_filter_shop_layout' );
@jillmugge
jillmugge / WooCommerce
Created April 22, 2014 14:36
Enlarge Product Images for WooCommerce
ul.products img{
-webkit-transition:all .5s ease-out !important; /*Webkit: Scale down image to 0.8x original size*/
-moz-transition:all .5s ease-out !important; /*Mozilla scale version*/
-o-transition:all .5s ease-out !important; /*Opera scale version*/
transition:all .5s ease-out !important;
-webkit-backface-visibility: hidden;
}
img.attachment-shop_catalog.wp-post-image:hover {
-webkit-transform:scale(2); /*Webkit: Scale up image to 1.2x original size*/
@jillmugge
jillmugge / Add Sales Reps to WooCommerce
Last active February 5, 2019 18:11
Add Sales Reps to WooCommerce
//Add to funtctions.php file
//Adding Sales reps to the check out
add_action('woocommerce_after_order_notes', 'jmg_custom_checkout_field');
function jmg_custom_checkout_field( $checkout ) {
echo '<div id="my_custom_checkout_field"><h2>'.__('Who Is Your EdiPure Sales Rep?').'</h2>';
woocommerce_form_field( 'edipure_reps', array(
'type' => 'select',
@jillmugge
jillmugge / wp-config.php
Last active December 7, 2018 15:19
wp-config.php
/* Place after define('WP-DBUG', false);*/
define('FORCE_SSL_ADMIN', true); //will force login thru SSL https://entire site: goto general settings add https://
//define('ALTERNATE_WP_CRON', true); //posts not getting published? redirect cron
//define('DISALLOW_FILE_EDIT', true); //will disable WP editor
//define('DISALLOW_FILE_MODS', true); //disables add/delete theme & plugins
define('WP_CASHE', true); //wp default cashe.
//define('WP_POST_REVISIONS', 4); //limits revisions false to turn off
//define('AUTOSAVE_INTERVAL', 240); //minutes
//define( 'WP_SITEURL', 'https://jmgmarketinggroup.com' ); //hard code into gen settings
//define( 'WP_HOME', 'https://jmgmarketinggroup.com' );