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
  • tvrooijen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago - 5 years 7 months ago #173925 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,
Attachments:
Last edit: 5 years 7 months ago by tvrooijen.
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
5 years 7 months ago #173927 by tammo
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


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
  • LouisGac's Avatar
  • Visitor
  • 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.
The topic has been locked.
  • tvrooijen
  • tvrooijen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #173961 by tvrooijen
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,
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #173993 by holch
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
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #174016 by tpartner
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.

Lime-years ahead

Online-surveys for every purse and purpose