Faq Can i display the language dropdown to a specific position or element?
Can i display the language dropdown to a specific position or element?

Yes, it's possible to position the language dropdown inline within a specific target element by setting the appropriate selector and choosing the 'inline' position option. Alternatively, you can also place the language selector anywhere in your content or templates using the dedicated shortcode.


gptranslate inline position

To achieve this behavior using the inline positioning option, follow these steps:

1. Set the Position to Inline under the 'Style settings' tab.
2. Define the CSS selector of the wrapper element where the widget should be rendered in the field labeled CSS selector of the wrapper element. For example:
.wp-block-navigation


This allows you to embed the language selector directly into any part of your template or navigation menu by targeting an existing class or container. This approach is ideal for integrating the selector seamlessly into your site's layout.


Alternatively, you can insert the language selector anywhere using the built-in shortcode:

[gptranslate]
This method is useful when you want to place the selector directly inside page content, widgets, or page builders without relying on CSS selectors.


Note: When using the inline positioning method, the dropdown and flags will be rendered inside the specified wrapper, so make sure the container is visible and styled appropriately in your theme.