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 | |
// Variable vide pour l'affichage le HTML à la fin | |
$output = ''; | |
// Récupérer la valeur du répéteur qui sera un tableau | |
// Elle me servira pour compter les éléments | |
$titres = get_field('ap_textes', $acfw); | |
// Déclaration du compteur | |
$i = 1; | |
// Récupérer le nombre de rang dans le répéteur dans la variable $count |
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 | |
//* Modèle pour les single | |
// Afficher l'image à la une | |
add_action( 'genesis_entry_header', 'gnoyelle_image_une', 9 ); | |
function gnoyelle_image_une() { | |
// Regarde si l'image à la une existe | |
// Sinon, le script s'arrête | |
if ( ! has_post_thumbnail() ) { | |
return; |
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 WordPress Genesis Sample (extrait) */ | |
/* STYLES POUR ORDINATEUR */ | |
html { | |
font-size: 62.5%; /* 10px browser default */ | |
} | |
/* Chrome fix */ | |
body > 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
<?php | |
// Template Name: Flexible Recette | |
// Forcer la plein largeur sur le modèle de page | |
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' ); | |
genesis(); |
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 | |
/** | |
* The Template for displaying all single products | |
* | |
* This template can be overridden by copying it to yourtheme/woocommerce/single-product.php. | |
* | |
* HOWEVER, on occasion WooCommerce will need to update template files and you | |
* (the theme developer) will need to copy the new files to your theme to | |
* maintain compatibility. We try to do this as little as possible, but it does | |
* happen. When this occurs the version of the template file will be bumped and |
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 | |
/***** | |
* Voir les hook dans les fichiers: | |
* /woocommerce/includes/wc-template-hooks.php | |
* Les fonctions sont ajoutées à un fichier dédié dans mon thème qui est appelé depuis le | |
* le fichier principal: functions.php | |
*/ | |
// Ajout de texte avant les vignettes |
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
<? // Template Name: Boutique avec options | |
/** | |
* Ajouter nouveau contenu | |
* @author Grégoire Noyelle | |
* @link https://github.com/woocommerce/woocommerce/wiki/wc_get_products-and-WC_Product_Query | |
* @link https://businessbloomer.com/woocommerce-easily-get-product-info-title-sku-desc-product-object/ | |
*/ | |
add_action( 'genesis_entry_content', 'woomod_nouveau_contenu', 20 ); |
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 | |
/** | |
* Enqueue CSS pour WooCommerce | |
* | |
* Les CSS déclarés dans votre thème seront chargés après ceux de WooCommerce | |
* | |
* @package Genesis Sample | |
* @author Grégoire Noyelle | |
* @license GPL-2.0+ | |
*/ |