跳到内容
Switcher settings

Style and colours

Change the frame, font, flags and colours of the switcher button, including its hover and open states, and save them for your store.

尚未提供简体中文版本,当前显示英文版。

Change how the switcher button looks: its frame, its font, its flags and its colours in each state.

请联系我们以启用此功能

Before you start

Steps

Open the Style card

The Style card of the switcher customization, open, with the Style card header highlighted.

In SmartCS, open 切换器设置. Click the 高级 tab. In the 模板 block, click 自定义. In the 自定义 block, stay on the 切换器 tab and click 样式.

Set the frame

Under 边框, choose the 边框线 shape and thickness. Choose a shadow for 常规状态 and for 悬停和激活效果. With a Classic template, set 宽度 to 自动 or 固定. A fixed width takes 20 to 1,600 px.

Set the font and flags

Under 元素, set the 字体 size, from 8 to 72 px, and its weight. Some font properties come from your theme. 旗帜样式 appears when the button shows a flag. Choose its shape and size. With a Modern template, 图标样式 appears when Location shows an icon.

Open the Color card

The Color card of the switcher customization, open, with the Color card header highlighted.

Click 颜色. Only one card is open at a time, so the Style card closes.

Pick the colours

Set 背景, 边框, 文本 and 箭头 in 常规状态 and in 悬停状态. 激活状态 sets the colours of a Classic switcher while it is open. Pick a colour, or type it as #rrggbb. Add two more digits, as in #rrggbbaa, to set its transparency.

Save your changes

Check the preview, then click 保存 in the save bar.

Modern templates

请联系我们以启用此功能

A Modern template has no Active state. Its fourth colour is called 图标 and is the location icon. Its width is always Auto.

Good to know

  • If you type text that is not a colour, the field keeps it. After you save, an error under the field asks for a colour in the format #rrggbb. A number outside its range gets an error in the same way.
  • The 选择器 tab has its own 样式 and 颜色 cards for the list that opens. They work the same way, with groups for the select box, the values, the search box and the button.
  • To change what a template starts with, see Switcher templates and your own templates.

注意

The preview is a guide and can differ from your storefront in small ways. The storefront is the final result. For settings these fields do not cover, use Add custom CSS to the switcher.

最后更新:2026年11月18日

本页内容