Welcome to the LimeSurvey Community Forum

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

Custom CSS field for customers

More
6 hours 31 minutes ago #275054 by lpavlovi
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Community Edition Version 6.17.13+260728 
Own server or LimeSurvey hosting: Own server
Survey theme/template: all
==================

Hi, 

we have quiet a few support tickets from our customers wanting to change little things (like text-color) in the given themes. Because we have a company-wide theme we do not want this theme to be changed globally. Is there a way to implement for example an Custom CSS Field to the Bootstrap Vanilla Theme in the survey settings, which allow the customer to edit certain things like the color of the text for the token input. A good example would be the editing menu for the Respondage_Vanilla theme. Thank you in advance for your help!

Best regards 
Luka 

Please Log in to join the conversation.

More
2 hours 22 minutes ago - 2 hours 20 minutes ago #275059 by Joffm
You are free to add desired options to the Theme-Options.
In the config.xml of your theme you find the section <options>
Code:
    <!-- You can add here any option you want. It will be available in twig file via aSurveyInfo.options.youroptionname -->
    <options>
        <hideprivacyinfo type="buttons" category="Simple options" width="4" title="Hide privacy info" options="on|off" optionlabels="Yes|No">off</hideprivacyinfo>
        <container type="buttons" category="Simple options" width="4" title="Survey container" options="on|off" optionlabels="Yes|No">on</container>
.....


As example I show the "headerbackgroundcolor"
config.xml:

then you get this in the "theme options"
 
and in the twig file you see how it is implemented
 

This way you can offer your uses several options to adapt in their surveys.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 hours 20 minutes ago by Joffm.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose