Skip to content

Instantly share code, notes, and snippets.

View alexpani's full-sized avatar

Alessandro Pani alexpani

View GitHub Profile
/* ## Column Classes
--------------------------------------------- */
/* Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css */
.five-sixths,
.four-sixths,
.one-fourth,
.one-half,
.one-sixth,
.one-third,
@alexpani
alexpani / HTML
Last active April 11, 2017 13:20
Poppy Icon Box
<!-- Poppy Icon Box v1.2.1 -->
<div class="poppy poppy-icon-box">
<div class="one-third first">
<i class="fa fa-truck fa-3x" aria-hidden="true"></i>
<h3 class="">SPEDIZIONE GRATUITA</h3>
<h4>Per ordini a partire da 79,90€</h4>
</div>
<div class="one-third">
//* Add custom.css
add_action( 'wp_enqueue_scripts', 'an_custom_css' );
function an_custom_css() {
wp_enqueue_style( 'custom-css-stylesheet', CHILD_URL . '/custom.css', array(), PARENT_THEME_VERSION );
}
//* Customize the entry info in the entry header (requires HTML5 theme support)
add_filter( 'genesis_post_info', 'an_post_info_filter' );
function an_post_info_filter($post_info) {
$post_info = 'Pubblicato il [post_date] da [post_author_posts_link] [post_comments] [post_edit]';
return $post_info;
}
@alexpani
alexpani / 0_reuse_code.js
Created October 30, 2016 18:42
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@alexpani
alexpani / woo_hooks.php
Created March 26, 2013 11:31
Gli Hook per WooCommerce
<?php
/** Template Hooks ********************************************************/
/**
* Sale flashes
*/
add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 );
add_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_sale_flash', 10 );
@alexpani
alexpani / sales.php
Created March 22, 2013 11:45
Aggiunge shortcode per prodotti in offerta in Woocommerce
<?php
/*
Plugin Name: Woocommerce Sale Products Shortcode
Version: 0.1
* Usage: [sale_products]
* Options & Default
per_page=12
columns=4
@alexpani
alexpani / minicart.php
Last active October 30, 2016 18:44
Woocommerce Mini Cart
<?php
/** Show item number on cart **/
/* Uso: <?php minicart(); ?> */
/* Plugin consigliato: WP PHP widget */
function minicart( $echo = true ) {
global $woocommerce;
ob_start();
@alexpani
alexpani / functions-woocommerce.php
Last active December 14, 2015 09:19
Snippet per siti basati su Woocommerce
<?php
/**
* functions-woocommerce.php
* Snippet collection for Woocommerce powered themes
* Author: Alessandro Pani for Active Net
* Version: 1.0
* aggiungere a functions.php: require_once('includes/functions-woocommerce.php');
*
*/