- Posts: 11
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How do you hide the titlebar in the survey
- tvrooijen
- Topic Author
- Offline
- New Member
Less
More
5 years 7 months ago - 5 years 7 months ago #173925
by tvrooijen
How do you hide the titlebar in the survey was created by tvrooijen
Hi,
I would like to hide the titlebar completely in my survey. I am not sure if this is possible and how. Could anyone please help me
Please see the screenshot in the attachements for clarification.
Thanks in advance,
I would like to hide the titlebar completely in my survey. I am not sure if this is possible and how. Could anyone please help me
Please see the screenshot in the attachements for clarification.
Thanks in advance,
Attachments:
Last edit: 5 years 7 months ago by tvrooijen.
The topic has been locked.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 966
- Thank you received: 219
5 years 7 months ago #173927
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic How do you hide the titlebar in the survey
Hi tvrooijen,
the titlebar holds some functions that LS needs to show. Like "Annuleren, verwijder alle antwoorden". Do you mean that you want to also delete these functions?
If so, the easiest way of doing this would be to extend the theme that you are using (assuming you use LimeSurvey 3.x.x) and adding the following line to the custom.css:
.navbar{
display: none;
}
This is a "hack", to really delete the navbar the theme, you would have to dig into the .twig files of your template. I am not really sure if deleting the navbar will result in other side effects.
Tammo
the titlebar holds some functions that LS needs to show. Like "Annuleren, verwijder alle antwoorden". Do you mean that you want to also delete these functions?
If so, the easiest way of doing this would be to extend the theme that you are using (assuming you use LimeSurvey 3.x.x) and adding the following line to the custom.css:
.navbar{
display: none;
}
This is a "hack", to really delete the navbar the theme, you would have to dig into the .twig files of your template. I am not really sure if deleting the navbar will result in other side effects.
Tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: tvrooijen
The topic has been locked.
- LouisGac
- Visitor
5 years 7 months ago #173929
by LouisGac
Replied by LouisGac on topic How do you hide the titlebar in the survey
no other side effet.
just comment or delete this line:
github.com/LimeSurvey/LimeSurvey/blob/ma...out_global.twig#L100
The css solution is fine too.
just comment or delete this line:
github.com/LimeSurvey/LimeSurvey/blob/ma...out_global.twig#L100
The css solution is fine too.
The topic has been locked.
- tvrooijen
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
5 years 7 months ago #173961
by tvrooijen
This worked, thank you. But this created one issue. I use this survey in an Iframe on my website, and now the white margin at the top is to large. Is there any way I can do to reduce the margin at the top?
On the second screenshot you can see how the survey is loaded in the Iframe.
Thanks for the fast response.
Best regards,
Replied by tvrooijen on topic How do you hide the titlebar in the survey
LouisGac wrote: no other side effet.
just comment or delete this line:
github.com/LimeSurvey/LimeSurvey/blob/ma...out_global.twig#L100
The css solution is fine too.
This worked, thank you. But this created one issue. I use this survey in an Iframe on my website, and now the white margin at the top is to large. Is there any way I can do to reduce the margin at the top?
On the second screenshot you can see how the survey is loaded in the Iframe.
Thanks for the fast response.
Best regards,
Attachments:
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2738
5 years 7 months ago #173993
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic How do you hide the titlebar in the survey
Yes, you can. You need to find the relevant section in the CSS file and adapt it accordingly.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
5 years 7 months ago #174016
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How do you hide the titlebar in the survey
Code:
body { padding-top: 0 !important; } body .top-container { margin-top: 20px; }
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: LouisGac, tvrooijen
The topic has been locked.