change background color of the header

More
2 years 8 months ago #139073 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

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
2 years 8 months ago #139075 by tpartner
Add something like this to the end of template.css:

.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

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #139078 by jantienm
I did, this is not working though. :unsure:

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #139080 by tpartner
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.

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago - 2 years 8 months ago #139128 by jantienm
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: 2 years 8 months ago by jantienm. Reason: more info

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #139152 by tpartner
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.

'debug'=>1,

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #139163 by jantienm
Hi Tony,

I checked, but it was allready set to 1.

Any other ideas?

Thx, Jantien

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #139164 by tpartner
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.

Please Log in or Create an account to join the conversation.

More
More
2 years 8 months ago #139166 by tpartner
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.

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #139169 by jantienm
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?

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #139170 by tpartner

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

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #139171 by jantienm
Hi Tony,

I called my hosting company and he showed me how I clean the "Varnish cash" on my virtual server. Now finally it refreshed!!

Thanks for helping me!!

Jantien

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago - 2 years 8 months ago #139172 by jantienm
Tony,

Now I finally can see the changes, could you help me with changing the color of the surveys title and the texts: load unfinished survey and save for later that are shown in the header as well?

Thx!
Last edit: 2 years 8 months ago by jantienm. Reason: typo

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #139192 by tpartner
Try something like this at the end of template.css:

.navbar-default .navbar-brand {
    color: #FFF000 !important;
}
 
.navbar-default .navbar-nav > li > a {
    color: #FFF000;
}
 
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    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: jantienm

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!