ShahiTranslate

Language Switcher Options

Overview

The language switcher is how visitors change languages on your site. ShahiTranslate Pro offers multiple switcher styles and extensive customization options.

Accessing Switcher Settings

Navigate to: ShahiTranslate Pro → Settings → Switcher

Switcher Types

1. Dropdown Menu

Best for: Professional sites, corporate websites, blogs

Features:

    1. Compact and space-efficient
    2. Clean, professional appearance
    3. Shows currently selected language
    4. Expands on click to show all options
    5. Customizable colors and fonts
    6. Configuration:

    7. Style: Classic or Modern
    8. Width: Auto, Fixed, or Full-width
    9. Max Height: Set maximum dropdown height with scroll
    10. Arrow Style: Choose dropdown indicator icon
    11. 2. Flags Dropdown

      Best for: Visual appeal, international sites, tourism sites

      Features:

    12. Country/language flags for visual recognition
    13. Optional language names beside flags
    14. Hover effects on flags
    15. Multiple flag sizes available
    16. SVG or PNG flags
    17. Configuration:

    18. Flag Size: 16px, 24px, 32px, 48px, or custom
    19. Flag Style: Rectangle, circle, or square
    20. Show Names: Display language names with flags
    21. Flag Position: Left or right of text
    22. 3. Floating Button

      Best for: Mobile-first sites, sites with fixed headers

      Features:

    23. Stays visible while scrolling
    24. Doesn’t consume permanent space
    25. Touch-friendly on mobile
    26. Customizable position
    27. Animation on hover
    28. Configuration:

    29. Position: Top-left, top-right, bottom-left, bottom-right
    30. Offset: Distance from edge (X and Y)
    31. Size: Small, medium, large, or custom
    32. Icon: Globe, flag, text, or custom icon
    33. Hide on Scroll: Optional auto-hide behavior
    34. 4. Popup/Modal

      Best for: Sites with many languages, visual presentation

      Features:

    35. Full-screen or centered modal
    36. Search functionality for many languages
    37. Beautiful grid layout with flags
    38. Language descriptions
    39. Smooth animations
    40. Configuration:

    41. Trigger: Button, link, or automatic on first visit
    42. Layout: Grid, list, or columns
    43. Search Bar: Enable/disable language search
    44. Background: Overlay opacity and color
    45. Close Button: Position and style
    46. 5. Inline List

      Best for: Footer placement, sidebar, simple layouts

      Features:

    47. Horizontal or vertical list
    48. Separator characters (|, /, •)
    49. Inline with other content
    50. No dropdown needed
    51. Minimal design
    52. Configuration:

    53. Orientation: Horizontal or vertical
    54. Separator: Choose character or custom
    55. Spacing: Adjust gaps between items
    56. Current Language: Highlight style
    57. 6. Globe Icon

      Best for: Minimalist designs, header integration

      Features:

    58. Single icon that opens language menu
    59. Space-efficient
    60. Modern appearance
    61. Tooltip showing “Change Language”
    62. Animated on hover
    63. Configuration:

    64. Icon Style: Solid, outline, or custom
    65. Menu Style: Dropdown, slide-out, or popup
    66. Icon Size: 16-48px
    67. Color: Match theme colors
    68. 7. Menu Integration

      Best for: Sites with existing navigation structure

      Features:

    69. Adds to WordPress navigation menu
    70. Appears with other menu items
    71. Inherits menu styling
    72. Dropdown within menu
    73. Mobile menu compatible
    74. Configuration:

    75. Menu Location: Choose which menu to add to
    76. Position: First, last, or specific position
    77. Label: Custom text or language name
    78. Icon: Optional flag or globe icon
    79. Display Options

      Flag Settings

      Flag Library:

    80. ShahiFlags collection (200+ countries/regions)
    81. Custom flag upload
    82. SVG (scalable, sharp) or PNG (standard)
    83. Flag Sizes:

    84. 16x16px: Compact, for tight spaces
    85. 24x24px: Standard size, most common
    86. 32x32px: Larger, more visible
    87. 48x48px: Extra large, for accessibility
    88. Custom: Specify exact dimensions
    89. Flag Styles:

    90. Rectangle: Standard flag proportions
    91. Circle: Circular crop of flag
    92. Square: Square crop
    93. Rounded: Rectangle with rounded corners
    94. Shadow: Add drop shadow
    95. Language Name Settings

      Display Format:

    96. Native Names: Español, Français, Deutsch (recommended)
    97. English Names: Spanish, French, German
    98. Language Codes: ES, FR, DE
    99. Custom Labels: Define your own text
    100. Typography:

    101. Font Family: Inherit from theme or custom
    102. Font Size: 12-24px
    103. Font Weight: Light, normal, bold
    104. Text Transform: Uppercase, lowercase, capitalize
    105. Name Position:

    106. Before flag
    107. After flag (most common)
    108. Below flag
    109. Name only (no flag)
    110. Combined Display

      Show both flags and language names:

    111. Flag + Name: 🇪🇸 Español
    112. Name + Flag: Español 🇪🇸
    113. Flag + Code: 🇪🇸 ES
    114. Stacked: Flag on top, name below
    115. Positioning

      Fixed Positions

      Header Positions:

    116. Top-left corner
    117. Top-center (centered in header)
    118. Top-right corner (most popular)
    119. Below header (in content area)
    120. Footer Positions:

    121. Bottom-left corner
    122. Bottom-center
    123. Bottom-right corner
    124. Above footer (in content area)
    125. Floating Positions:

    126. Top-right (sticky)
    127. Top-left (sticky)
    128. Bottom-right (sticky)
    129. Bottom-left (sticky)
    130. Custom coordinates
    131. Custom Positioning

      Shortcode Method:
      `
      [shahitranslate_switcher]
      `
      Place in any post, page, or widget area.

      With Attributes:
      `
      [shahitranslate_switcher type=”flags” size=”24″]
      `

      PHP Template Function:
      `php
      exists(‘shahitranslateswitcher’)) {
      shahitranslate_switcher(array(
      ‘type’ => ‘dropdown’,
      ‘show_flags’ => true
      ));
      } ?>
      `

      Widget Method:

    132. Go to Appearance → Widgets
    133. Find “ShahiTranslate Switcher” widget
    134. Drag to desired widget area
    135. Configure widget settings
    136. Responsive Positioning

      Set different positions for different devices:

    137. Desktop: Top-right header
    138. Tablet: Floating bottom-right
    139. Mobile: In hamburger menu
    140. Configuration:

    141. Desktop Position: Choose from options
    142. Tablet Override: Optional different position
    143. Mobile Override: Optional different position
    144. Breakpoints: Define at what screen widths to switch
    145. Appearance Customization

      Color Scheme

      Text Colors:

    146. Default State: Normal text color
    147. Hover State: On mouse hover
    148. Active State: Currently selected language
    149. Disabled State: Unavailable options (if any)
    150. Background Colors:

    151. Switcher Background: Main container
    152. Dropdown Background: Expanded menu
    153. Hover Background: Highlight on hover
    154. Active Background: Selected language
    155. Border Colors:

    156. Border: Main border color
    157. Border Hover: On hover
    158. Border Radius: Rounded corners (0-50px)
    159. Border Width: 0-5px
    160. Size and Spacing

      Container Size:

    161. Width: Auto, 100px-500px, or 100%
    162. Height: Auto or fixed
    163. Max Width: Limit maximum width
    164. Min Width: Prevent too narrow
    165. Internal Spacing:

    166. Padding: Space inside switcher (5-30px)
    167. Item Spacing: Gap between language options
    168. Line Height: Vertical spacing of text
    169. Icon Spacing: Gap between icon and text
    170. Effects and Animations

      Hover Effects:

    171. Color Change: Smooth color transition
    172. Background Change: Highlight on hover
    173. Scale: Slightly enlarge on hover
    174. Shadow: Add/enhance shadow
    175. Underline: Underline text
    176. Transition Effects:

    177. Duration: 0.1s – 1s
    178. Easing: Linear, ease-in-out, or custom
    179. Properties: What animates (color, transform, etc.)
    180. Dropdown Animation:

    181. Fade In: Opacity transition
    182. Slide Down: Vertical slide
    183. Scale: Grow from center
    184. None: Instant appearance
    185. Mobile Optimization

      Mobile-Specific Settings:

    186. Increase Touch Size: Larger buttons for easy tapping (44x44px minimum)
    187. Simplify Display: Show flags only, hide text labels
    188. Full-Width: Expand to full screen width
    189. Bottom Sheet: Slide up from bottom instead of dropdown
    190. Mobile Menu Integration:

    191. Add to hamburger/mobile menu
    192. Show at top or bottom of menu
    193. Inherit mobile menu styling
    194. Collapse on language selection
    195. Advanced Options

      Show/Hide Elements

      Selectively display or hide elements:

    196. ✅ Current Language Indicator
    197. ✅ Dropdown Arrow
    198. ✅ Flag Icons
    199. ✅ Language Names
    200. ⬜ Language Codes
    201. ⬜ RTL Indicator
    202. ⬜ Translation Status
    203. Behavior Settings

      Click Behavior:

    204. Open Dropdown: Show language options
    205. Direct Link: Go to language immediately (for inline lists)
    206. Custom Action: Trigger JavaScript function
    207. Selection Behavior:

    208. Reload Page: Standard behavior
    209. AJAX Switch: Change language without reload (faster)
    210. Scroll to Top: Return to top after switch
    211. Remember Scroll: Keep scroll position
    212. Accessibility:

    213. Keyboard Navigation: Tab through options, Enter to select
    214. Screen Reader Support: ARIA labels and descriptions
    215. Focus Indicators: Visible focus outlines
    216. Skip Link: “Skip to language switcher” link
    217. Custom CSS

      Add your own styles for complete control:

      `css
      / Custom switcher styling /
      .shahitranslate-switcher {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 25px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
      }

      .shahitranslate-switcher:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.3);
      }

      .shahitranslate-flag {
      border: 2px solid #fff;
      border-radius: 50%;
      }
      `

      Location: ShahiTranslate Pro → Settings → Switcher → Custom CSS

      Switcher Templates

      Pre-Built Templates

      Choose from professionally designed templates:

    218. Minimal: Clean, simple dropdown
    219. Flags Only: Visual flag-based selector
    220. Professional: Corporate style with subtle colors
    221. Colorful: Vibrant, eye-catching design
    222. Floating Globe: Modern floating button
    223. Footer Inline: Horizontal list for footer
    224. Mobile First: Optimized for touch devices
    225. Applying Templates:

    226. Go to Switcher tab
    227. Click “Templates” button
    228. Select a template
    229. Customize as needed
    230. Save changes
    231. Creating Custom Templates

      Save your configuration as a template:

    232. Configure switcher exactly as desired
    233. Click “Save as Template”
    234. Give it a name and description
    235. Template is saved for reuse
    236. Use Cases:

    237. A/B testing different designs
    238. Site network consistency
    239. Quick style switching
    240. Client presentations
    241. Testing Your Switcher

      Preview Mode

      Test without affecting live site:

    242. Enable Preview Mode in switcher settings
    243. Switcher only visible to logged-in admins
    244. Test functionality and appearance
    245. Disable Preview Mode to make live
    246. Responsive Testing

      Check appearance on different devices:

    247. Use browser DevTools responsive mode
    248. Test actual mobile devices
    249. Check tablet sizes
    250. Verify touch functionality
    251. Browser Compatibility

      Switcher is tested and compatible with:

    252. Chrome, Firefox, Safari, Edge (latest versions)
    253. Internet Explorer 11 (basic support)
    254. Mobile browsers (iOS Safari, Chrome Android)
    255. Common Switcher Configurations

      Configuration Examples

      Corporate/Professional:

    256. Type: Dropdown
    257. Position: Top-right header
    258. Display: Language names only
    259. Colors: Neutral (grays, blues)
    260. E-commerce:

    261. Type: Flags Dropdown
    262. Position: Top-right, next to cart
    263. Display: Flags + names
    264. Size: 24px flags
    265. Blog/Content Site:

    266. Type: Floating Button (globe icon)
    267. Position: Bottom-right
    268. Display: Popup with flags and names
    269. Mobile: Integrated in mobile menu
    270. Multi-Language News Site:

    271. Type: Popup with search
    272. Position: Header button
    273. Display: Grid of flags with full language names
    274. Feature: Search bar for quick access
    275. Troubleshooting

      Switcher Not Appearing

    276. Check that plugin is activated
    277. Verify position settings
    278. Clear cache (site and browser)
    279. Check for CSS conflicts
    280. Ensure at least 2 languages are enabled
    281. Styling Issues

    282. Try disabling theme CSS for switcher
    283. Add custom CSS to override theme styles
    284. Use browser inspector to identify conflicts
    285. Increase CSS specificity if needed
    286. Mobile Issues

    287. Verify mobile-specific settings
    288. Test touch target size (should be 44x44px minimum)
    289. Check for overlapping elements
    290. Ensure responsive breakpoints are set correctly
    291. Next Steps

    292. Translation Cache System
    293. SEO Settings
    294. Customizing Switcher Appearance

Share this article

Was this article helpful?

Help us improve our documentation

Still need help?

Our support team is ready to assist you with personalized guidance for your workspace.

Submit a support ticket