Welcome to the LimeSurvey Community Forum

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

custom.css for landingpage

More
1 day 2 hours ago #274894 by wegszebe
Please help us help you and fill where relevant:
Your LimeSurvey version: 7.0.6
Own server or LimeSurvey hosting: own server
Survey theme/template: vanilla
==================
I have copied the vanilla template to be able to create some own setting including custom.css for the view of a survey.

Limesurvey has two landingpages. The "normal" landingpage, where surveys can be listed, and the admin page.

For any survey I was able to create a custom.css and change some class settings.

But for the "normal" landingpage I did not find a way to create a custom.css.

How can I modify the view of the "normal" landingpage?

Thanks for help
Regards
Karl-Heinz

Please Log in to join the conversation.

More
1 day 18 minutes ago #274898 by Joffm
Replied by Joffm on topic custom.css for landingpage
Hi,
I am a bit confused.
Which pages do you call "landingpages"?
You wrote
1.

The "normal" landingpage, where surveys can be listed

and
2.

the admin page

Do you mean by "normal" this one? Here the public surveys are listed.


Or which? Some screenshots would really help.

Then you wrote

I have copied the vanilla template to be able to create some own setting including custom.css for the view of a survey.
...
For any survey I was able to create a custom.css

The usual way is to extend a theme to use the inheritance. Did you really copy it?
[url] www.limesurvey.org/manual/New_Template_S...S3.x/en#Theme_Editor [/url]
And you do not create a "custom.css", it is there already.
Here you either overwrite existing classes of the "theme.css" or you create new classes which you add to the survey in the setting "css classes".

Better you explain a bit more. What exactly do you want to achieve?



 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

More
23 hours 55 minutes ago #274900 by wegszebe
Replied by wegszebe on topic custom.css for landingpage
1) yes, I mean this page you showed. As I wrote, the page where the surveys are listed.
2) no, I did not really copy the theme. I used the proposed way to extend the vanilla thema and give it a different name.

As i wrote, I was able to change the design of the theme using a custom.css.

But any changes in the custom.css did not effect the "normal" landingpage (the one you showed).

I found out, by tracking the html-code inside the browser, that this landinpage uses some custom.css, but it is stored inside the original path of the vanilla theme (themes/survey/vanilla/css/custom.css).

Normally, for an extended theme, the path for the custom.css is upload/themes/survey/<name of the extended theme>/css/custom.css.
But I found no way to store the custom.css for the "normal" landingpage downstream upload...

Please Log in to join the conversation.

More
20 hours 25 minutes ago - 20 hours 21 minutes ago #274906 by Joffm
Replied by Joffm on topic custom.css for landingpage

I found out, by tracking the html-code inside the browser, that this landinpage uses some custom.css, but it is stored inside the original path of the vanilla theme (themes/survey/vanilla/css/custom.css).

So you did not use the theme editor?
here there is the section "Umfragenliste".
Now you can either adapt the twig files, like "layout_survey_list.twig" or add some css to the custom.css
Here only an image and other colour and font-family of the text.
 

but it is stored inside the original path of the vanilla theme (themes/survey/vanilla/css/custom.css).

You should not touch the "theme" folder.

When you extend a theme, adapt something, add something, only the changes and only the affected files are stored in "upload/themes/survey/..."
 

Joffm

Übrigens: Hast Du überhaupt eingestellt, dass diese Übersichtsseite mit dem gewünschten theme angezeigt wird?  
 

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

Please Log in to join the conversation.

More
20 hours 21 minutes ago - 20 hours 18 minutes ago #274907 by wegszebe
Replied by wegszebe on topic custom.css for landingpage
probably I have overseen something.
Naturally I do not touch the original file.
Naturally I used the theme editor and edited the custom.css.

But at least in my case, this did not effect the "normal" landingpage. It take effect on the view of the survey if it is opened and filled in. But not the "normal" landingpage.

At least not in my case.

You may try yourself. In the view of the landingpage where the public surveys are listed you have buttons with a blue background. Change it for test to some other color!
Last edit: 20 hours 18 minutes ago by wegszebe.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose