Welcome to the LimeSurvey Community Forum

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

Noob question - changing basic font color

  • AbeStew
  • AbeStew's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 weeks ago #133756 by AbeStew
Sorry for such a basic question. Strangely I have managed to guess my way around the CSS and change the colors for everything to what I want - except for the basic text. I am editing a copy of the news_paper template. Within the editor the two sections I have not been able to change are the black text saying "TEMPLATE SAMPLE" in the top left and the main text beginning "This is a sample survey description. It could be quite long."

What sections of the CSS should I be editing to change the color of these?

Thank you.
The topic has been locked.
More
8 years 2 weeks ago #133787 by Stan
Hi AbeStew,

welcome to Limesurvey :) Your question is good but you just don't look at the right place.
To change these text elements, forget about CSS and go straight to the Settings of your Survey (under General). Take look HERE in the Manual how to do this.

I do not have this template but i guess "TEMPLATE SAMPLE" at the top left could be the default survey name. if so, you can edit this in the Editor when you click on 'welcome.pstpl' (menu at left) and then change this: {SURVEYNAME}.
Maybe the other guys will help you with better hints.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 weeks ago #133789 by DenisChenu
Replied by DenisChenu on topic Noob question - changing basic font color
Hi,

2.50 template is new ... then CSS specialist don't know it a lot.

Did you trye
.question-text{color:red;} ?

ANd , really : if you do css : you need firebug or another HTML developpement helper

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 weeks ago - 8 years 2 weeks ago #133803 by tpartner
Replied by tpartner on topic Noob question - changing basic font color

...not been able to change...the black text saying "TEMPLATE SAMPLE" in the top left...

Add something like this to the end of news_paper.css
Code:
.navbar-default .navbar-brand {
    color:red;
}

...not been able to change...the main text beginning "This is a sample survey description. It could be quite long."...

Add something like this this to the end of news_paper.css
Code:
body {
    color: #333333;
}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 8 years 2 weeks ago by tpartner.
The topic has been locked.
More
8 years 2 weeks ago #133807 by Stan
Oh my bad :blush:
i was completely wrong in my answer. Gracefully the guys came to the rescue :-)
The topic has been locked.
  • AbeStew
  • AbeStew's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 weeks ago - 8 years 2 weeks ago #133817 by AbeStew
Replied by AbeStew on topic Noob question - changing basic font color
Thanks for the replies folks. Adding tpartner's recommendations worked a treat - now got my template looking how I want it :cheer: . Thanks again for the help, greatly appreciated.

Edit: Ah, new problem. Although the template in the 'Question Page' view looks correct the questions don't in the test survey I created. While everything around each question conforms to the template the questions themselves default to white background with black text. I can see in the question editor how to change the font color but can't see an option to change the background to another color.
Last edit: 8 years 2 weeks ago by AbeStew.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 weeks ago #133824 by tpartner
Replied by tpartner on topic Noob question - changing basic font color
Can you activate a test survey, give us a link and also attach a mock-up of what you want?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • AbeStew
  • AbeStew's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 weeks ago #133829 by AbeStew
Replied by AbeStew on topic Noob question - changing basic font color
Thanks for the quick reply. Example of test survey as it currently looks:

constellations.scot/survey/index.php/sur...68/newtest/Y/lang/en

What I want it to look like:



Cheers,

Abe.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 weeks ago #133833 by tpartner
Replied by tpartner on topic Noob question - changing basic font color
Try this:
Code:
div[id^="group-"] > div {
    background-color: transparent;
}
 
h1, 
h2, 
h3, 
h4, 
h5, 
h6, 
.h1, 
.h2, 
.h3, 
.h4, 
.h5, 
.h6,
.navbar-default .navbar-nav > li > a {
    color: #ffffff !important;
}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • AbeStew
  • AbeStew's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 1 day ago #134713 by AbeStew
Replied by AbeStew on topic Noob question - changing basic font color
Sorry for delay in reply - been snowed under with work. That code managed to fix the inside of text boxes (where people can write their replies) and the color of the text used used for questions, cheers. However, the background for all questions remained white. After playing about some more with the inspector tool in Firefox managed to find the last few parts that needed changed.

Thanks again for all you help.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose