This file contains 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
/* ## 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, |
This file contains 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
<!-- 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"> |
This file contains 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
//* 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 ); | |
} |
This file contains 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
<div class="poppy poppy-featured-info"> | |
<div class="one-third first"> | |
<img class="alignleft size-full" src="#" alt="#"/> | |
</div> | |
<div class="two-thirds"> | |
<h3>%filltext:name=Title:default=This is a Title%</h3> | |
<h4>%fillarea:name=Text:default=This is the intro text of the featured info element. Put your message here.%</h4> | |
<p><a class="button" href="#"><i class="fa fa-arrow-right"></i> %filltext:name=Button Text:default=Vedi i Dettagli%</a></p> | |
</div> | |
<div class="clearfix"></div> |
This file contains 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
//* 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; | |
} |
This file contains 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 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 | |
/** 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 ); |
This file contains 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 | |
/* | |
Plugin Name: Woocommerce Sale Products Shortcode | |
Version: 0.1 | |
* Usage: [sale_products] | |
* Options & Default | |
per_page=12 | |
columns=4 |
This file contains 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 | |
/** Show item number on cart **/ | |
/* Uso: <?php minicart(); ?> */ | |
/* Plugin consigliato: WP PHP widget */ | |
function minicart( $echo = true ) { | |
global $woocommerce; | |
ob_start(); |
This file contains 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 | |
/** | |
* 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'); | |
* | |
*/ |
NewerOlder