diff --git a/README.md b/README.md index 8b22d4b..cd38386 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,6 @@ Pour réaliser cela, on utilise l'extension [Advanced Custom Fields](https://www Pour que cela fonctionne: - Le champ image, dans ACF, doit avoir l'identifiant "image_accueil". -- Le réglage du champ image doit être "Données de l'image (array)" (en anglais: Object (array of data)). \ No newline at end of file +- Le réglage du champ image doit être "Données de l'image (array)" (en anglais: Object (array of data)). + +Note: vous pouvez utiliser [Github Updater](https://github.com/afragen/github-updater) pour mettre à jour ce thème. \ No newline at end of file diff --git a/functions.php b/functions.php index a0f0d8c..a2d6576 100644 --- a/functions.php +++ b/functions.php @@ -11,6 +11,12 @@ function deppo_slmn_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); + + // corrige un bug de Deppo: deppo-font-enqueue + + wp_enqueue_style( 'hkgrotesk-style', get_template_directory_uri() . '/assets/fonts/hk-grotesk/stylesheet.css' ); + + } @@ -23,23 +29,10 @@ function deppo_slmn_enqueue_styles() { * * @since deppo 1.0 */ -function deppo_slmn_slider_featured_image() { - - // vérifier si on a une image ACF: - - if (function_exists('get_field')) { - - $image = get_field('image_accueil'); - $size = 'full'; // (thumbnail, medium, large, full or custom size) - - if( $image ) { - - echo wp_get_attachment_image( $image['id'], 'full' ); - - } +function deppo_slmn_slider_featured_image() { - } else if ( has_post_thumbnail() ) : + if ( has_post_thumbnail() ) : ?> @@ -68,7 +61,20 @@ function deppo_slmn_slider_featured_image() { if ( $display_post_nav == 0 ) { ?> diff --git a/style.css b/style.css index 83d659c..ac5fd90 100644 --- a/style.css +++ b/style.css @@ -1,11 +1,13 @@ /* Theme Name: Deppo-Slmn -Theme URI: https://github.com/eracom-gr361 +Theme URI: https://github.com/eracom-gr361/deppo-slmn +GitHub Theme URI: https://github.com/eracom-gr361/deppo-slmn Author: Eracom GR361 Author URI: https://github.com/eracom-gr361 + Template: deppo Description: Theme enfant de Deppo -Version: 1.0.0 +Version: 1.0.1 License: GNU General Public License v2 or later License URI: LICENSE Text Domain: deppo diff --git a/template-parts/content-slider.php b/template-parts/content-slider.php index 1a740ae..7eb2a21 100644 --- a/template-parts/content-slider.php +++ b/template-parts/content-slider.php @@ -17,7 +17,19 @@
- +