Welcome to the LimeSurvey Community Forum

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

change background color of the header

  • jantienm
  • jantienm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #139073 by jantienm
change background color of the header was created by jantienm
Hello,

I am using Version 2.50+ Build 160620

I am trying to do, I think, something very simple, but somhow I cannot do it.

I want to change the background color of the default template (blue: #2c3e50). I made a copy of the default template.

- First of all, I cannot load the css file in the template editor, I'm not sure why? I am admin so should have all permissions.[/li]
- Second I tried changing the "template.css" and the "flat_and_modern.css" files by downloading/uploading it manually with FTP from/to the folder: upload/templates/my-new-template/css. But I somehow cannot find the code that is used for the background color of the header!

Can someone help me out, thanks a lot!

Jantien
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #139075 by tpartner
Replied by tpartner on topic change background color of the header
Add something like this to the end of template.css:

Code:
.navbar-default {
    background-color:  #FF00FF;
}

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: anandkasturi
The topic has been locked.
  • jantienm
  • jantienm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #139078 by jantienm
Replied by jantienm on topic change background color of the header
I did, this is not working though. :unsure:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #139080 by tpartner
Replied by tpartner on topic change background color of the header
Delete everything in /tmp/assets/, clear your cache and retest.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • jantienm
  • jantienm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago - 7 years 8 months ago #139128 by jantienm
Replied by jantienm on topic change background color of the header
Hi Tony,

I just deleted everything just like you said, but still no effect I'm afraid.

I do see a lot of files called: template_temp_160712095331.html directly in the tmp file with dates of today and yesterday. Is it save to delete those files as well? And will it work maybe?

Jantien
Last edit: 7 years 8 months ago by jantienm. Reason: more info
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #139152 by tpartner
Replied by tpartner on topic change background color of the header
Yes, it is safe to remove those files.

In application/config/config.php, set debug to 1 - this will cause the template files to be loaded directly from the template directory instead of from tmp/assets.

Code:
'debug'=>1,

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • jantienm
  • jantienm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #139163 by jantienm
Replied by jantienm on topic change background color of the header
Hi Tony,

I checked, but it was allready set to 1.

Any other ideas?

Thx, Jantien
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #139164 by tpartner
Replied by tpartner on topic change background color of the header
Can you activate a test survey and give a link?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • jantienm
  • jantienm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #139165 by jantienm
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #139166 by tpartner
Replied by tpartner on topic change background color of the header
Hmm...the files are being loaded directly from the template directory but I don't see that snippet at the end of template.css - www.cvkt.nl/limesurvey/upload/templates/...016/css/template.css

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • jantienm
  • jantienm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #139169 by jantienm
Replied by jantienm on topic change background color of the header
Hmm this is really weird. I looked into the template.css on my server and indeed, the code was not added! So I deleted it and uploaded the correct one. But still, when I open it with the URL you just send me, the code is still not there! So I deleted everything again from the tmp/assets folder and cleared my cache again and it's still not there!!! :(

So then I uploaded the file "template-test.css" to the folder limesurvey/upload/templates/CVKT-2016/css and then tried the URL www.cvkt.nl/limesurvey/upload/templates/...ss/template-test.css and I get a 404 page, file not found.

What is happening here? You have an idea? I could call my hosting company?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #139170 by tpartner
Replied by tpartner on topic change background color of the header

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: jantienm
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose