From fdb6da79819b81e204c18f127900f99473c998b3 Mon Sep 17 00:00:00 2001 From: FredericoAndrade Date: Thu, 22 Aug 2024 20:22:06 +0200 Subject: [PATCH] fix testimonials --- modules/carousel--testimonial.php | 3 +-- modules/carousel--thumbnail.php | 18 ++---------------- stylus/main.css | 4 +++- stylus/require/carousel--testimonial.styl | 4 +++- 4 files changed, 9 insertions(+), 20 deletions(-) diff --git a/modules/carousel--testimonial.php b/modules/carousel--testimonial.php index 92d8d7ee..4555fb50 100644 --- a/modules/carousel--testimonial.php +++ b/modules/carousel--testimonial.php @@ -18,8 +18,7 @@ $testimonial_link_back = get_field('testimonial_link_back'); ?>
  • - <?php echo $testimonial_image['alt']; ?> - + '?>

    diff --git a/modules/carousel--thumbnail.php b/modules/carousel--thumbnail.php index df55feae..b43e2a56 100644 --- a/modules/carousel--thumbnail.php +++ b/modules/carousel--thumbnail.php @@ -25,24 +25,10 @@

  • '; - + echo ''; } elseif ( has_post_thumbnail() ) { - // the_post_thumbnail( 'large', array('class'=>'wt_thumbnail__image') ); - echo ''; - + echo ''; } else { echo ''; diff --git a/stylus/main.css b/stylus/main.css index 6671f474..e8cb38ae 100644 --- a/stylus/main.css +++ b/stylus/main.css @@ -909,9 +909,11 @@ body.search-results .wt_banner--searchbar { align-items: center; } .wt_carousel--testimonials ul .wt_testimonial__image { - max-width: 200px; + width: 200px; + height: 200px; border-radius: 100%; margin-right: 3rem; + background-size: cover; } .wt_carousel--testimonials ul .wt_testimonial__copy p { margin-bottom: 1.5rem; diff --git a/stylus/require/carousel--testimonial.styl b/stylus/require/carousel--testimonial.styl index 7e2d8a0e..054f66a5 100644 --- a/stylus/require/carousel--testimonial.styl +++ b/stylus/require/carousel--testimonial.styl @@ -19,9 +19,11 @@ align-items center &__image - max-width 200px + width 200px + height 200px border-radius 100% margin-right 3rem + background-size cover &__copy p