How do you hide the titlebar in the survey

More
1 month 2 days ago - 1 month 2 days ago #173925 by tvrooijen
tvrooijen created the topic: How do you hide the titlebar in the survey
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: 1 month 2 days ago by tvrooijen.

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

More
1 month 2 days ago #173927 by tammo
tammo replied the 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 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
1 month 2 days ago #173929 by LouisGac
LouisGac replied the 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 following user(s) said Thank You: tammo, tvrooijen

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

More
1 month 2 days ago #173961 by tvrooijen
tvrooijen replied the 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:

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

More
1 month 2 days ago #173993 by holch
holch replied the 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'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
1 month 2 days ago #174016 by tpartner
tpartner replied the topic: How do you hide the titlebar in the survey
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!