| ENG | ITA |
|---|---|
All fields marked with an asterisk (*) are required |
Tutti i campi segnati con un asterisco (*) sono obbligatori |
This file contains hidden or 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
| /* | |
| * Removes products count after categories name | |
| */ | |
| add_filter( 'woocommerce_subcategory_count_html', 'woo_remove_category_products_count' ); | |
| function woo_remove_category_products_count() { | |
| return; | |
| } |
This file contains hidden or 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
| <ul> | |
| <li>Lorem ipsum deserunt consequat fugiat tempor. Lorem ipsum deserunt consequat fugiat tempor. Lorem ipsum deserunt consequat fugiat tempor. Lorem ipsum deserunt consequat fugiat tempor. Lorem ipsum deserunt consequat fugiat tempor. Lorem ipsum deserunt consequat fugiat tempor. Lorem ipsum deserunt consequat fugiat tempor. Lorem ipsum deserunt consequat fugiat tempor. Lorem ipsum deserunt consequat fugiat tempor. Lorem ipsum deserunt consequat fugiat tempor. Lorem ipsum deserunt consequat fugiat tempor.</li> | |
| <li>List Item</li> | |
| <li>List Item</li> | |
| </ul> |
This file contains hidden or 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 Script to jQuery | |
| */ | |
| // css/js | |
| function function_add_script() { | |
| wp_enqueue_script( 'nome_01', get_stylesheet_directory_uri().'/PERCORSO.js', array('jquery'), null, true ); | |
| wp_enqueue_script( 'nome_02', get_stylesheet_directory_uri().'ATTIVA_SCRIPT.js', array('nome_01'), null, true ); | |
| wp_enqueue_style( 'nome_02', get_stylesheet_directory_uri().'PERCORSO.css'); | |
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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_action( 'pre_get_posts', 'mfields_remove_autop_from_posts' ); | |
| function mfields_remove_autop_from_posts() { | |
| if( is_page(3970) ) | |
| remove_filter( 'the_content', 'wpautop' ); | |
| } |
This file contains hidden or 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 | |
| session_start(); | |
| // added in v4.0.0 | |
| require_once 'facebook-php-sdk/autoload.php'; | |
| use Facebook\FacebookSession; | |
| use Facebook\FacebookRedirectLoginHelper; | |
| use Facebook\FacebookRequest; | |
| use Facebook\FacebookResponse; | |
| use Facebook\FacebookSDKException; |
This file contains hidden or 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 | |
| /* Alternativa che varia in base alla pagina*/ | |
| add_filter('loop_shop_columns', 'loop_columns'); | |
| if (!function_exists('loop_columns')); { | |
| function loop_columns() { | |
| if (is_shop()){ | |
| return 2; // 2 products per row | |
| }elseif(is_product_category()){ | |
| return 4; // 4 products per row |
This file contains hidden or 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 name: json | |
| */ | |
| // include our wordpress functions | |
| // change relative path to find your WP dir | |
| define('WP_USE_THEMES', false); |
This file contains hidden or 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 | |
| $content = get_the_content(); | |
| $trimmed_content = wp_trim_words( $content, 40, '<a href="'. get_permalink() .'"> ...Leggi altro</a>' ); | |
| echo $trimmed_content; | |
| ?> |