- Posts: 5
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Footer in template
- Felix20
- Topic Author
- Offline
- New Member
Less
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
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12912
- Thank you received: 3975
4 years 9 months ago #186060
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 1
4 years 9 months ago - 4 years 9 months ago #186080
by Felix20
Replied by Felix20 on topic Footer in template
Last edit: 4 years 9 months ago by Felix20.
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10106
- Thank you received: 3593
4 years 9 months ago #186089
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 Footer in template
1) You need to place the new HTML outside of the Twig comment tag:
2) You need to add the following CSS rules to your theme custom.css file as indicated in that Twig file:
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 1
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
4 years 9 months ago #186100
by DenisChenu
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.
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.