Tagged: language selector, quick css, styling, wpml
Hi,
I’m using WPML to translate a website into 4 different languages and it works fine. The only problem that the Quick CSS for the default language doesn’t get included on the page. It does get included on the 3 other languages.
It works in danish: http://retailplanit.com.linux8.unoeuro-server.com/?page_id=734&lang=da
It works in swedish: http://retailplanit.com.linux8.unoeuro-server.com/?page_id=2652&lang=sv
It works in norwegian: http://retailplanit.com.linux8.unoeuro-server.com/?page_id=2650&lang=nb
But, as you can se, it doesn’t work in english: http://retailplanit.com.linux8.unoeuro-server.com/?page_id=2647 <- here the language selector is placed in the upper left corner, but is supposed to be the same place as on the danish, swedish and norwegian versions. I’ve copied the Quick CSS that I’ve used on the three others to the english version, but it doesn’t work.
Thanks in advance
Hi,
Please copy the code on your custom.css to affect all other languages. What is the css code you’re using? Please paste it here.
Regards,
Ismael
Hi,
As I wrote I’ve already copied the Quick CSS to all languages – but it doesn’t work on the english version.
My css is:
#lang_sel a {
border: none;
}
#lang_sel .lang_sel_sel {
padding-right: 6px;
}
#lang_sel {
width: 1030px;
margin: 0px auto 0px auto;
display: block;
z-index: 500;
}
#lang_sel li {
text-align: right;
width: auto;
clear: both;
}
#lang_sel ul {
float: right;
}
#lang_sel ul ul {
border-width: 0px !important;
}
#lang_sel a:hover {
background-color: #ffffff !important;
}
As you can see in this screenshot the CSS is there: http://clienti.dk/Files/Files/retail_planit/retailp_enfold_english_quickcss.jpg
Hi,
What I’m saying is, copy the code from Quick CSS to the custom.css located on the theme’s css folder. You can edit it via FTP or your cpanel.
Regards,
Ismael
Aaaahhh… Okay. Sorry. I’ll try that out and see if it works.