Hi, thank you for helping me resolve the issues and create a few tickets. I will check them one by one, and if the issues are already solved, I will mark them as resolved later. However, I have one more question: how can I place the switcher at the bottom as a sticky element, like in the link below? hidden link hidden link
Based on the video provider, I need to assist with the following:
1. The icon should be positioned at the top instead of the bottom.
2. The Malay language box should be the same size as the English one.
3. On hover, only the flag and text will have abug appear without the box just the flag
/* Force WPML floating language switcher dropdown to open upwards */
.wpml-floating-language-switcher .wpml-ls-sub-menu {
bottom: 100%; /* position the dropdown above */
top: auto; /* remove default downwards positioning */
margin-bottom: 5px;
margin-top: 0;
background: #000; /* black dropdown background */
border: none; /* no border */
}
.wpml-floating-language-switcher .wpml-ls-sub-menu a {
color: #fff !important; /* white text */
background: transparent !important;
padding: 10px; /* make dropdown items bigger */
border: none !important; /* no borders between items */
}
.wpml-floating-language-switcher .wpml-ls-statics-shortcode_actions a {
background-color: transparent !important;
color: #fff !important; /* white text */
font-size: 15px; /* make text bigger */
border:none;
}
.wpml-floating-language-switcher {
position: fixed;
bottom: 10px;
right: 100px; /* moved left from edge */
background: #000; /* black background */
padding: 5px; /* bigger padding */
z-index: 1000000; /* keep always on top */
border: none; /* no border */
-webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
-moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
}
This is my code
Thanks for your reply. Sorry, we do not offer assistance with CSS stylings. But I'm volunteering a bit here. Try using the custom CSS code below and see if it helps.
DISCLAIMER: Please know that any snippet or code suggested here is for educational purposes only. they are not meant to be the final solution but instead meant to point you in the right direction and are out of the scope of our support so we can't nor will modify, improve, debug or maintain it.
The topic ‘[Closed] how can I place the switcher at the bottom as a sticky element’ is closed to new replies.