Changing header background with CSS

More
1 month 5 days ago #167423 by LouisGac
LouisGac replied the topic: Changing header background with CSS
can you show us the headers? the css/js files?

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

More
1 month 5 days ago #167424 by krosser
krosser replied the topic: Changing header background with CSS

LouisGac wrote: can you show us the headers? the css/js files?


Is this what you mean? (please see attached)

I'm using the latest LS 3.7 hosted by LS team, not installed locally.
Attachments:

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

More
1 month 5 days ago #167425 by LouisGac
LouisGac replied the topic: Changing header background with CSS
please, turn debug mode on, so the asset manager is not used.

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

More
1 month 5 days ago #167426 by krosser
krosser replied the topic: Changing header background with CSS

LouisGac wrote: please, turn debug mode on, so the asset manager is not used.


And then what should I do afterwards?

I've turned it on and rerun the survey.

I'm using the latest LS 3.7 hosted by LS team, not installed locally.

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

More
1 month 5 days ago #167429 by LouisGac
LouisGac replied the topic: Changing header background with CSS
then reload the survey in a private windows.

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

More
1 month 5 days ago #167430 by krosser
krosser replied the topic: Changing header background with CSS

LouisGac wrote: then reload the survey in a private windows.


By private you mean like Incognito in Chrome? Because it gives me an error when I try to open incognito the preview.

I'm using the latest LS 3.7 hosted by LS team, not installed locally.

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

More
1 month 5 days ago #167431 by LouisGac
LouisGac replied the topic: Changing header background with CSS
yes, I mean Incognito mode.
you can publish your survey or allow public access to the preview.

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

More
1 month 5 days ago #167432 by krosser
krosser replied the topic: Changing header background with CSS
Is it possible to find out the issue without publishing?
The survey is corporate and cannot be made available to the public.

I'm using the latest LS 3.7 hosted by LS team, not installed locally.

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

More
1 month 5 days ago #167433 by LouisGac
LouisGac replied the topic: Changing header background with CSS
yes: the problem is that you're changin the CSS without refreshing the cache.
Please: develop your theme with debug mode on, refresh your browser cache at each change, and read

Maybe there is a problem with the autorefresh of the theme editor, I'll have a look

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

More
1 month 5 days ago #167438 by krosser
krosser replied the topic: Changing header background with CSS
For some reason, when I extend a theme again, then the CSS code works. But for the previously extended one it doesn't...
And the strange thing is that I had the theme set with that CSS code, and from today it just went back to default and wasn't responding to changes anymore. So I had to extend the theme again. BUT.. who knows, maybe it will happen again - one week after, the theme will stop loading custom.css and I have a big issue in my organization. I would like to avoid such surprises.

I'm using the latest LS 3.7 hosted by LS team, not installed locally.

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

More
1 month 5 days ago #167440 by LouisGac
LouisGac replied the topic: Changing header background with CSS
it's the asset manager + the browser cache.
turn debug mode on: no more asset manager (the real file you're editing is loaded), but then browser cache problem (the browser uses its local version)

Solution: turn debug mode on, refresh your browser cache.

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

More
1 month 5 days ago #167441 by LouisGac
LouisGac replied the topic: Changing header background with CSS
but normally, the theme editor should refresh the assets at each save. I'll check what's going on

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

More
1 month 4 days ago #167453 by Joffm
Joffm replied the topic: Changing header background with CSS
Hi, krosser,

For example, I have had blue navbar and white hyperlinks, highlighted in orange. I'm using Vanilla theme.
The codes:

.navbar .navbar .navbar-default {
    background-color: #008dc9;
}
 
.navbar .navbar-default .navbar-nav > li > a {
    color: #ffffff;
}
 
.navbar .navbar-default .navbar-nav > li > a:hover {
    text-decoration: underline;
    color: #D86422;
}

If I change this code to:
.
vanilla .navbar {
    background-color: #008dc9;
}
 
.vanilla .navbar .navbar-nav > li > a {
    color: #ffffff;
}
 
.vanilla .navbar .navbar-nav > li > a:hover {
    text-decoration: underline;
    color: #D86422;
}

I get the following (preview of editor):




I think this is what you tried to get.

Joffm
Attachments:
The following user(s) said Thank You: krosser

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!