Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to remove the language switcher

  • Kansen
  • Kansen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 2 months ago #55020 by Kansen
How to remove the language switcher was created by Kansen
Hi everyone,

I got LimeSurvey installed by LimeService and finished my questionnaire now (englisch & german).

Could anyone tell me how I can remove that Dropdown Box that makes you change the language during the questionnaire?

Thx in advance!

Best,
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
13 years 2 months ago #55028 by holch
Replied by holch on topic How to remove the language switcher
The language switcher is, as far as I know, part of the template. Have a look at your template. Depending on your template this might be in different files. My guess would be the startpage.pstpl.

If you use a standard template, I would suggest you copy the template and change things in the new template. So you can always go back to the standard one, if something goes wrong.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
13 years 2 months ago #55043 by tpartner
Replied by tpartner on topic How to remove the language switcher
Find and remove the {LANGUAGECHANGER} placeholder. Maybe in survey.pstpl.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Kansen
  • Kansen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 2 months ago #55142 by Kansen
Replied by Kansen on topic Aw: Re: How to remove the language switcher

tpartner wrote: Find and remove the {LANGUAGECHANGER} placeholder. Maybe in survey.pstpl.


Hi,

thx for the help but all i could find was:

.languagechanger {font-size: 1em;}

that was in the template.css

I tried deleting that but it made no difference...any other ideas?

Thx again,
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
13 years 2 months ago - 13 years 2 months ago #55143 by holch
Of course deleting .languagechanger in the template.css doesn't help. It just deletes the way it is supposed to be styled. What you could do is to use
Code:
.languagechanger {display:none;}

While still in the source code, the languagechanger shouldn't appear anymore.

Without knowing which template you use, it is basically impossible to tell you where in the template files you can find the language changer.

For the template "default" you can find {LANGUAGECHANGER} in the survey.pstpl. But this can be different for each template.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 13 years 2 months ago by holch.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
13 years 2 months ago - 13 years 2 months ago #55144 by tpartner
Replied by tpartner on topic Aw: Re: How to remove the language switcher
The placeholder must be there or the language changer would not appear. What template are you using?

You could also use CSS to hide it. Add the following to the end of template.css:
Code:
.languagechanger {
  display: none;
}

[EDIT] holch beat me to the CSS :P [/EDIT]

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 13 years 2 months ago by tpartner.
The topic has been locked.
More
11 years 6 months ago #85162 by jmbaria
Replied by jmbaria on topic Aw: Re: How to remove the language switcher
This is an old post but I thought I should just post the answer anyway.
open the current active template e.g templates/default/surveylist.pstpl

look for {LANGUAGECHANGER} in surveylist.pstpl file and remove it.

That's all.
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
10 years 11 months ago #94948 by tammo
Replied by tammo on topic How to remove the language switcher
Depending on the template you use, the [LANGUAGESWITCHER] may be either in welcome.pstl or another template file. I prefer it to reside in welcome.pstl, since then it is only shown at the start of the survey, not on every following page.


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
More
7 years 10 months ago #135262 by testleno
Hi,

I want to remove the language switcher of the Administrator Login Panel. I am using Limesurvey version2.50.

Kindly help me to remove it.

Thanks
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 10 months ago #135301 by holch
For the Administrator Login Panel you will most probably have to look in the administration template files. Probably the easiest way is to hide it via CSS, if you can find the respective ID or class so you can access it via CSS.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 10 months ago - 7 years 10 months ago #135302 by holch
I have tried to find out how to solve this.

Wow, is this simple little page complicated. I don't know why there is so much going on on this page. I guess this has to do with bootstrap. I had and am still having a hard time to find my way around the html code and the css code for what is supposed to be a pretty simple page.

With adding display:none to #s2id_loginlang I managed to hide the drop down. But as the label "language" has no ID nor a unique class, I am not quite sure how to hide this via CSS. Maybe someone else can skip in, who is more up to date with coding or has experience with bootstrap.
Code:
#s2id_loginlang {
    border: none;
    padding: 0;
    display: none;
}

Should be found in lime-admin-common.css

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 7 years 10 months ago by holch.
The topic has been locked.
More
7 years 10 months ago #135313 by Ben_V

holch wrote: But as the label "language" has no ID


answered here ;)

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose