跳至內容
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日

本頁內容