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
// Woocommerce MyAccount Sorting Links | |
// Ordinamento funzioni nella pagina my account di woocommerce | |
function mb_woo_my_account_order() { | |
$myorder = array( | |
'dashboard' => __( 'Bacheca', 'woocommerce' ), | |
'points' => __( 'Raccolta Punti', 'woocommerce' ), | |
'cataloghi-per-rivenditori' => __( 'Cataloghi per rivenditori', 'woocommerce' ), | |
'orders' => __( 'Storico Ordini', 'woocommerce' ), | |
'my-account-fatture' => __( 'Le tue fatture', 'woocommerce' ), | |
'termini-e-condizioni' => __( 'Condizioni D\'Acquisto', 'woocommerce' ), |
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
function my_google_analytics() { | |
<!-- Global site tag (gtag.js) - Google Analytics --> | |
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-69841290-2"></script> | |
<script> | |
window.dataLayer = window.dataLayer || []; | |
function gtag(){dataLayer.push(arguments);} | |
gtag('js', new Date()); | |
gtag('config', 'UA-69841290-2'); | |
</script> |
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
function my_excerpt_length( $length ) { | |
$length = '35'; // change the length in words you want | |
return $length; | |
} | |
add_filter( 'excerpt_length', 'my_excerpt_length' ); |
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
/* | |
Theme Name: genesischild | |
Theme URI: http://marcobrughi.com/ | |
Description: Simple child theme for Genesis Framework. | |
Author: Marco Brughi | |
Author URI: http://marcobrughi.com/ | |
Version: 1.0 | |
Tags: custom-background, custom-header, featured-images, threaded-comments, two-columns |
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
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'child_grid_loop_helper', 55 ); | |
/** Add support for Genesis Grid Loop **/ | |
function child_grid_loop_helper() { | |
if ( function_exists( 'genesis_grid_loop' ) ) { | |
genesis_grid_loop( array( | |
'features' => 1, | |
'feature_image_size' => 250, |
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
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'child_grid_loop_helper', 55 ); | |
/** Add support for Genesis Grid Loop **/ | |
function child_grid_loop_helper() { | |
if ( function_exists( 'genesis_grid_loop' ) ) { | |
genesis_grid_loop( array( | |
'features' => 0, | |
'feature_image_size' => 'featured-image', |
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
//* Genesis grid loop | |
function minimum_grid_loop_helper() { | |
if ( function_exists( 'genesis_grid_loop' ) ) { | |
genesis_grid_loop( array( | |
'features' => 1, | |
'feature_image_size' => 'featured-image', | |
'feature_content_limit' => 0, | |
'grid_image_size' => 'grid-image', | |
'grid_content_limit' => 0, |
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
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'child_grid_loop_helper' ); | |
function child_grid_loop_helper() { | |
if ( function_exists( 'genesis_grid_loop' ) ) { | |
genesis_grid_loop( array( | |
'features' => 1, // Num. post to show full size | |
'feature_image_size' => 650, // Size of image features post | |
'feature_image_class' => 'aligncenter post-image', // alignment of features image | |
'feature_content_limit' => 150, // number of characters of the post to show in the features section (set to 0, which will return the full content). | |
'grid_image_size' => 'grid-thumbnail', // Image size of other post (set in functions.php) |
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
/** Adding My custom Favicon | |
* (change www.mywebsite.com with your website url) | |
*/ | |
add_filter( 'genesis_pre_load_favicon', 'my_custom_favicon' ); | |
function my_custom_favicon( $favicon_url ) { | |
return 'http://www.mywebsite.com/images/favicon.png'; | |
} | |
// or better use relative URL |
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
function max_title_length( $title ) { | |
$max = 20; | |
if( strlen( $title ) > $max ) { | |
return substr( $title, 0, $max ). " …"; | |
} else { | |
return $title; | |
} | |
} |
OlderNewer