Skip to content

Instantly share code, notes, and snippets.

View NicBeltramelli's full-sized avatar
🎯
Focusing

Nic Beltramelli NicBeltramelli

🎯
Focusing
View GitHub Profile
@NicBeltramelli
NicBeltramelli / function.php
Created February 13, 2019 16:18
Reposition jetpack sharing buttons below the title on WooCommerce product page
<?php
// Do NOT include the opening php tag.
/**
* Reposition sharing buttons below the title on product page
*
* @author Nic Beltramelli
*/
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_sharing', 50 );
@NicBeltramelli
NicBeltramelli / function.php
Created February 13, 2019 16:14
Reposition jetpack sharing buttons below the title for Genesis framework
<?php
// Do NOT include the opening php tag.
/**
* Reposition jetpack sharing buttons below the title
*
* @author Nic Beltramelli
*
*/
add_action(
@NicBeltramelli
NicBeltramelli / function.php
Last active February 12, 2019 15:12
Change number of thumbnails per row on WooCommerce product gallery.
<?php
// Do NOT include the opening php tag.
/**
* Change number of thumbnails per row on product gallery
*
* @author Nic Beltramelli
*
* @param array $wrapper_classes The number of thumbnails per row.
* @return array The modified wrapper class.
@NicBeltramelli
NicBeltramelli / _wordpress.scss
Last active January 4, 2019 14:31
Add support for Gutenberg color palette for Genesis Advanced
/* Color Palette */
.has-dark-background-color {
background-color: color(dark, base);
}
.has-dark-color {
color: color(dark, base);
}
@NicBeltramelli
NicBeltramelli / functions.php
Last active August 23, 2017 18:02 — forked from srikat/functions.php
Adding a cart icon with number of items and total cost in nav menu when using WooCommerce. http://sridharkatakam.com/adding-cart-icon-number-items-total-cost-nav-menu-using-woocommerce/
//* Make Font Awesome available
add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' );
function enqueue_font_awesome() {
wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css' );
}
/**
* Place a cart icon with number of items and total cost in the menu bar.
@NicBeltramelli
NicBeltramelli / function.php
Last active June 20, 2017 08:20
Genesis customize the Author Box
<?php
/**
* Customize Genesis Author Box
* @author Nic Beltramelli
*/
add_filter( 'genesis_author_box', function ($output, $context, $pattern, $gravatar, $title, $description) {
if( 'single' == $context ) {