Flatsome主题- 带有星星客户评价的卡片

本页面内容可以快速给你的网站添加客户评价(带星级)增加可信度,可用于客户评价、客户评论、褒奖好评等,前提你必须安装了WordPress Flatsome主题。

Customer love

We boast an average rating of 4.8/5

“Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi.”

Jonathan Wilson / New York
Avatar Female 1 300x300

“Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore.”

Adam Pearce / Los Angeles
Avatar Male 2 300x300

“Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.”

Sally Robinson / Minnesota
Smiling Chinese Male Electronic Factory Worker Standing Factory 31965 142715

短代码

[section label="*Testimonial: Cards with Star Ratings" bg_color="rgb(248, 246, 244)" padding="66px" padding__md="42px" class="cards-star-ratings"]

[gap]

[row width="custom"]

[col span__sm="12" span__md="12" margin="0px 0px 42px 0px" margin__md="0px 0px 18px 0px"]

[row_inner style="collapse" width="custom" custom_width="506px" h_align="center"]

[col_inner span__sm="12" align="center"]
<h3 class="heading">Customer love</h3>
<p class="lead no-margin">We boast an average rating of 4.8/5</p>
[/col_inner]

[/row_inner]

[/col]
[col span="4" span__sm="12" span__md="12"]

[row_inner style="collapse" width="custom" custom_width="506px"]

[col_inner span__sm="12" padding="36px 36px 36px 36px" padding__sm="24px 24px 24px 24px" bg_color="rgb(255, 255, 255)" bg_radius="8" border="1px 1px 1px 1px" border_radius="8" border_color="rgb(235, 235, 236)"]

[testimonial name="Jonathan Wilson" company="New York"]
<p class="lead">“Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi.”</p>
[/testimonial]
[ux_image id="1022" image_size="original" width="28" height="100%"]

[/col_inner]

[/row_inner]

[/col]
[col span="4" span__sm="12" span__md="12"]

[row_inner style="collapse" width="custom" custom_width="506px"]

[col_inner span__sm="12" padding="36px 36px 36px 36px" padding__sm="24px 24px 24px 24px" bg_color="rgb(255, 255, 255)" bg_radius="8" border="1px 1px 1px 1px" border_radius="8" border_color="rgb(235, 235, 236)"]

[testimonial name="Adam Pearce" company="Los Angeles"]
<p class="lead">“Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore.”</p>
[/testimonial]
[ux_image id="1021" image_size="original" width="28" height="100%"]

[/col_inner]

[/row_inner]

[/col]
[col span="4" span__sm="12" span__md="12"]

[row_inner style="collapse" width="custom" custom_width="506px"]

[col_inner span__sm="12" padding="36px 36px 36px 36px" padding__sm="24px 24px 24px 24px" bg_color="rgb(255, 255, 255)" bg_radius="8" border="1px 1px 1px 1px" border_radius="8" border_color="rgb(235, 235, 236)"]

[testimonial name="Sally Robinson" company="Minnesota"]
<p class="lead">“Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.”</p>
[/testimonial]
[ux_image id="695" image_size="original" width="28" height="100%"]

[/col_inner]

[/row_inner]

[/col]

[/row]

[/section]

css


/*---------- 客户评价:带有星星评级的卡片 ----------*/
.cards-star-ratings .star-rating span:before {
  color: #f7c06e; /* Change star rating color */
}
.cards-star-ratings .star-rating {
  font-size: 24px;
  margin: 0 0 18px;
}
.cards-star-ratings h3.heading {
  font-size: 300%; /* 48px */
  line-height: 1.1;
}
.cards-star-ratings p.lead {
  font-style: normal;
  line-height: 1.3;
}
.cards-star-ratings .image-cover img{
	border-radius:50% !important
}
.cards-star-ratings .image-cover {
	margin-top:10px;
}
@media screen and (max-width:549px) {
  .cards-star-ratings p.lead {
    font-size: 16px;
    line-height: 1.6;
  }
  .cards-star-ratings h3.heading {
    font-size: 200%; /* 32px */
    line-height: 1.2;
  }
}

可能发生的事

  • 图片不显示

是因为你的网站中没有本页的图片,请重新上传图片替换即可正常显示

如何使用扁平化模块

在您的 Flatsome 网站上使用扩展组件非常简单。
首先,复制提供的短代码并将其粘贴到文本页面编辑器或直接粘贴到 UX Builder。

1. 复制并粘贴短代码

2.添加自定义CSS代码

其次,复制 CSS 代码(如果提供)并将其粘贴到您的项目中以获得所需的样式。在 WordPress 中添加和更新 CSS 代码的方法有多种,所以让我们逐一了解一下。

WordPress 额外 CSS

外观→自定义→额外 CSS

Css Method 2

Flatsome 自定义 CSS

Flatsome →高级→自定义 CSS

20240513130622

Css Method 3

主题样式.css

外观→主题编辑器→ style.css

20240513130736

Css Method 4

 

Open this in UX Builder to add and edit content