Flatsome主题- 暗色Tabs切换卡

本页面内容可以快速修改你的WordPress网站 Tabs切换卡颜色,如果你的网站为暗色,那么这个组件会提升你的整体设计效果,前提你必须安装了WordPress Flatsome主题。

Payment methods

Sed id interdum massa. Curabitur sollicitudin eget tellus nec volutpat. Nunc a purus non libero pretium ultrices. In hac habitasse platea dictumst. Cras tempor urna a convallis blandit. Maecenas nec quam dolor. Integer lorem dui, porttitor sit amet ligula id, elementum laoreet nulla.

Shipping and delivery

Aenean ut consectetur ante, ac varius risus. Suspendisse pulvinar commodo feugiat. Donec blandit, ex at tincidunt pulvinar, velit mauris aliquet lectus, at convallis ligula tellus sit amet ex. Phasellus porta felis tincidunt dui posuere accumsan. Fusce fermentum vel felis at condimentum.

Returns and refunds

Maecenas ut vestibulum risus. Cras nisl leo, scelerisque sit amet nibh sed, hendrerit fermentum risus. Sed at molestie ligula. Vivamus efficitur faucibus sodales. Nulla id felis nisl. Proin tempor sapien vel odio semper, vitae semper sapien hendrerit. Fusce ut justo dapibus, vestibulum.

短代码

[section label="*Tabs: Vertical Dark" bg_color="rgb(20, 20, 20)" padding="114px" padding__sm="42px" padding__md="66px" class="tabs-vertical-dark"]
[gap]
[row]
[col span__sm="12"]
[row_inner style="collapse" width="custom" custom_width="964px"]
[col_inner span__sm="12"]
[tabgroup style="pills" nav_style="normal" class="dark-tabs"]
[tab title="Payment"]
[row_inner_1 style="collapse"]
[col_inner_1 span__sm="12" padding="36px 36px 36px 36px" padding__sm="24px 24px 24px 24px" bg_color="rgba(255, 255, 255, 0.05)" bg_radius="8" color="light"]
<h3 class="heading">Payment methods</h3>
<p class="no-margin">Sed id interdum massa. Curabitur sollicitudin eget tellus nec volutpat. Nunc a purus non libero pretium ultrices. In hac habitasse platea dictumst. Cras tempor urna a convallis blandit. Maecenas nec quam dolor. Integer lorem dui, porttitor sit amet ligula id, elementum laoreet nulla.</p>
[/col_inner_1]
[/row_inner_1]
[/tab]
[tab title="Shipping & delivery"]
[row_inner_1 style="collapse"]
[col_inner_1 span__sm="12" padding="36px 36px 36px 36px" padding__sm="24px 24px 24px 24px" bg_color="rgba(255, 255, 255, 0.05)" bg_radius="8" color="light"]
<h3 class="heading">Shipping and delivery</h3>
<p class="no-margin">Aenean ut consectetur ante, ac varius risus. Suspendisse pulvinar commodo feugiat. Donec blandit, ex at tincidunt pulvinar, velit mauris aliquet lectus, at convallis ligula tellus sit amet ex. Phasellus porta felis tincidunt dui posuere accumsan. Fusce fermentum vel felis at condimentum.</p>
[/col_inner_1]
[/row_inner_1]
[/tab]
[tab title="Returns"]
[row_inner_1 style="collapse"]
[col_inner_1 span__sm="12" padding="36px 36px 36px 36px" padding__sm="24px 24px 24px 24px" bg_color="rgba(255, 255, 255, 0.05)" bg_radius="8" color="light"]
<h3 class="heading">Returns and refunds</h3>
<p class="no-margin">Maecenas ut vestibulum risus. Cras nisl leo, scelerisque sit amet nibh sed, hendrerit fermentum risus. Sed at molestie ligula. Vivamus efficitur faucibus sodales. Nulla id felis nisl. Proin tempor sapien vel odio semper, vitae semper sapien hendrerit. Fusce ut justo dapibus, vestibulum.</p>
[/col_inner_1]
[/row_inner_1]
[/tab]
[/tabgroup]
[/col_inner]
[/row_inner]
[/col]
[/row]
[/section]

css

/*---------- Tabs: Vertical Dark ----------*/
.tabs-vertical-dark .nav-pills > li > a {
  font-size: 16px;
  border-radius: 6px;
  padding: 4px 24px;
  margin: 0 12px 12px 0;
  transition: all 200ms ease;
  -webkit-transition: all 200ms ease;
  background-color: hsla(0, 0%, 100%, 0.1); /* Change tab background color */
  color: hsla(0, 0%, 100%, 0.5); /* Change tab text color */
}
.tabs-vertical-dark .nav-pills > li.active > a {
  background-color: hsla(0, 0%, 100%, 0.5); /* Change active tab background color */
  color: #fff; /* Change active tab text color */
}
.tabs-vertical-dark .tab-panels {
  padding-top: 0;
}
.tabs-vertical-dark h3.heading {
  font-size: 200%; /* 32px */
  line-height: 1.2;
}
@media screen and (max-width:549px) {
  .tabs-vertical-dark h3.heading {
    font-size: 150%; /* 24px */
  }
}

可能发生的事

  • 不是黑色的Tabs切换卡

确保添加完成代码后,清除浏览器缓存。

如何使用扁平化模块

在您的 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