How do you hide the titlebar in the survey

More
5 months 21 hours ago - 5 months 21 hours 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 months 21 hours ago by tvrooijen.

Please Log in or Create an account to join the conversation.

More
5 months 20 hours ago #173927 by tammo
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 Tools for Research
Proud developers of the TFR Responsive Limesurvey template
toolsforresearch.com/limesurvey-responsive-template
The following user(s) said Thank You: LouisGac, tvrooijen

Please Log in or Create an account to join the conversation.

More
5 months 20 hours ago #173929 by LouisGac
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 following user(s) said Thank You: tammo, tvrooijen

Please Log in or Create an account to join the conversation.

More
5 months 17 hours ago #173961 by tvrooijen

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:

Please Log in or Create an account to join the conversation.

More
5 months 15 hours ago #173993 by holch
Yes, you can. You need to find the relevant section in the CSS file and adapt it accordingly.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
5 months 10 hours ago #174016 by tpartner
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

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!