Welcome to the LimeSurvey Community Forum

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

Footer in template

  • Felix20
  • Felix20's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 9 months ago - 4 years 9 months ago #186053 by Felix20
Footer in template was created by Felix20
Hi,


I would like to add a footnote on every question of the survey with a phone number and an URL address for respondents
whenever they feel like they need more information. It would be paler (if possible) and centered.

Since I do not know how the template coding language works (or whatever how you call it), it would be very appreciated if I knew exactly what to copy and paste in the template.

Thank you,
Felix
Last edit: 4 years 9 months ago by Felix20.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #186060 by Joffm
Replied by Joffm on topic Footer in template
Hi,
maybe this thread (three weeks ago) helps:
www.limesurvey.org/forum/design-issues/1...-add-activate-footer

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Felix20
  • Felix20's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 9 months ago - 4 years 9 months ago #186080 by Felix20
Replied by Felix20 on topic Footer in template
Hi,

Thank you for your answer.

I have tried what you suggested in the other thread without success.
Any reason why nothing appeared?

Last edit: 4 years 9 months ago by Felix20.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #186089 by tpartner
Replied by tpartner on topic Footer in template
1) You need to place the new HTML outside of the Twig comment tag:

Code:
{#
Add your footer in this file.
 
You will need to add custom CSS to make this work, for example, the following
should work for a bottom-aligned footer in all browsers that properly support
flex:
 
body {
     padding-bottom: 0; /* no bottom padding, footer should be bottom aligned */
     padding-top: 60px;/* now is redefine in JS to fit any title length */
     flex-direction: column; /* article, then footer */
     display: flex; /* flex, to extend the content to full size */
     min-height: 100vh; /* full height, to bottom-align footer */
}
body > article {
    flex: 1; /* the main article should use as much space as possible */
}
 
#}

<div style="background:blue; color:white; text-align:center">My second div</div>

2) You need to add the following CSS rules to your theme custom.css file as indicated in that Twig file:

Code:
body {
     padding-bottom: 0; /* no bottom padding, footer should be bottom aligned */
     padding-top: 60px;/* now is redefine in JS to fit any title length */
     flex-direction: column; /* article, then footer */
     display: flex; /* flex, to extend the content to full size */
     min-height: 100vh; /* full height, to bottom-align footer */
}
body > article {
    flex: 1; /* the main article should use as much space as possible */
}

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: Felix20
The topic has been locked.
  • Felix20
  • Felix20's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 9 months ago #186092 by Felix20
Replied by Felix20 on topic Footer in template
Great it worked! thank you so much
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #186100 by DenisChenu
Replied by DenisChenu on topic Footer in template
A lot of alternatives solution : css-tricks.com/couple-takes-sticky-footer/

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: tpartner
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose