Hi:
There's a way to put a language selector in top-bar with selectpicker bs instead of `
- ` ?
I tried to customize it but I got lots of incompatibility with CSS...
Any suggested way to do this?
Thank you for your attention!
Regards,
Edgar Afonso
5 replies · opened Mar 22, 2021
Hi:
There's a way to put a language selector in top-bar with selectpicker bs instead of `
Thank you for your attention!
Regards,
Edgar Afonso
Hello,
The BS SelectPicker is not designed to adapt to the Default Top Links styling when used in the Top Bar. The SelectPicker will use its own styling and is currently working as expected. Can you please let us know how are you trying to make this look so that we can provide you further assistance on this. Thanks for your Patience.
Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.
Hi! Thank you for our reply!
Basically, I wanted it look like the example you provided in the demo-cleaner.html but with selectpicker bs as I am implementing this on the OctoberCMS and the native plugin uses bs selectpicker.
Thank you in advance.
Hello,
Thanks for your Patience!
We have tried working on this but unfortunately, this will require a Lot of Custom Styling to make the BS SelectPicker in the Top Bar to look like the Top Links section. You can currently only use the Top Links Menu List Items for adding Menus to the Top Bar or you can consider adding the Bootstrap Dropdowns to the Top Links. The BS SelectPicker currently works best as a Component for Forms. We will definitely try adding Default Styling for this to be used in the Top Bar in the Future Versions of Canvas.
Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
Hello:
Thank you for the support. Nevermind!
I found a way to solve the problem. I used your code within octobercms plugin.
Here's the way I made it, if someone is interested:
-
{% component 'localePicker' %}
In the partial:

{{ 'Português'|_ }}
{% for code, name in locales %}
- [
{% if code == 'pt' %}

{% elseif code == 'en' %}

{% endif %}
{{ name }}](#)
{% endfor %}
Now it working fine!
Thank's for your interest on this!
Hello,
Glad that your issue was resolved and Thanks for sharing your solution.
Please do let us know if we can help you with anything else or if you find any further issues with Canvas.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard