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.
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.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.