- Posts: 38
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Background color on surveylist
- rschipull
- Topic Author
- Offline
- Junior Member
Less
More
8 years 7 months ago #124181
by rschipull
Background color on surveylist was created by rschipull
I'm trying to change the background color on the surveylist page. Where at in the template.css file allows me to edit colors and fonts, or is that not the correct file I should be looking at. Initially, I thought it was the body.default section, but that didn't seem to work.
thanks,
rob
thanks,
rob
The topic has been locked.
- holch
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
8 years 7 months ago #124186
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Background color on surveylist
Survey list is part of the template that is marked as default in Limesurvey. So if you made a copy of this template, it won't have any affect if you don't mark this new template as default.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- rschipull
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
8 years 7 months ago #124232
by rschipull
Replied by rschipull on topic Background color on surveylist
My copied survey template is marked as default in the "Global Settings" "General" tab. Is there somewhere else I need to set my new template as the default, and is the body.default section on the template.css file the correct area to make changes to the background color for the surveylist page?
thanks,
rob
thanks,
rob
The topic has been locked.
- holch
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
8 years 7 months ago #124249
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Background color on surveylist
This depends very much on your template. Each template might define the background color differently.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
8 years 7 months ago #124265
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Background color on surveylist
Rob, can you give a link to the survey list page so we can view the source and applied styles?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- rschipull
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
8 years 7 months ago #124300
by rschipull
Replied by rschipull on topic Background color on surveylist
Sure thing:
www.testcodeskills.com/survey/
My goal is make the font, background color, header, and footer the same on this page as I have on my homepage.
My goal is make the font, background color, header, and footer the same on this page as I have on my homepage.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
8 years 7 months ago #124323
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Background color on surveylist
Well, given that there is no header or footer in the survey list page, I'm not sure what you want but adding these rules to the end of template.css in your template will insert some of the blue and green from your homepage. (
manual.limesurvey.org/The_template_editor
)
If you want to more closely mimic the homepage, you will need to modify surveylist.pstpl to insert those elements. You can either copy those elements and styles from your WordPress theme or use a tool like Firebug for Firefox to copy them directly from the source.
Code:
body { background: none #1E73BE; color: #FFFFFF; } table.innerframe { border-collapse: collapse; border-spacing: 0; border: 0 none; } .survey-list-table { background: none rgba(89, 188, 217, 1); } h1 { color: #FFFFFF; }
If you want to more closely mimic the homepage, you will need to modify surveylist.pstpl to insert those elements. You can either copy those elements and styles from your WordPress theme or use a tool like Firebug for Firefox to copy them directly from the source.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- rschipull
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
8 years 7 months ago #124365
by rschipull
Replied by rschipull on topic Background color on surveylist
tpartner,
I think this might be exactly what I was looking for. I'll take a stab at implementing your enhancements below.
thank you very much.
rob
I think this might be exactly what I was looking for. I'll take a stab at implementing your enhancements below.
thank you very much.
rob
The topic has been locked.
- rschipull
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
8 years 7 months ago #124369
by rschipull
Replied by rschipull on topic Background color on surveylist
Just added in your suggested changes and my surveylist page did not change. I'm wondering if this is related to my other post about my copied template (testcodeskills) not being recognized as the new default template.
With regards to inserting the header and footer from my wordpress page, is it best to just copy the contents of the header.php and footer.php wordpress files and insert into the surveylist.pstpl file, or would it be easier to just reference their location in the surveylist.pstpl file. Also, where abouts, in the surveylist.pstpl file, would I copy or reference:
<table class="survey-list-table">
<tr>
<td class="site-name">
<h1>{SITENAME}</h1>
</td>
</tr>
<tr>
<td class="survey-list-heading">
{SURVEYLISTHEADING}
</td>
</tr>
<tr>
<td class="survey-list">
<ul>{SURVEYLIST}</ul>
</td>
</tr>
<tr>
<td class="survey-contact">
{SURVEYCONTACT}
</td>
</tr>
<tr>
<td class="language-changer">
<p>{LANGUAGECHANGER}</p>
<!-- <a href=" www.limesurvey.org " target="_blank">
-->
<!-- <a href=" www.limesurvey.org " target="_blank">The Online Survey Tool Delete - Free & Open Source
-->
</td>
</tr>
</table>
<style type="text/css">
body {
background-image: url({TEMPLATEURL}gradient2.gif);
}
</style>
<!--[if lt IE 7]>
<script language="JavaScript">
jQuery.ready(function(){ correctPNG(); });
</script>
<![endif]-->
Thanks again for replying to my posts. They have been extremely helpful thus far.
rob
With regards to inserting the header and footer from my wordpress page, is it best to just copy the contents of the header.php and footer.php wordpress files and insert into the surveylist.pstpl file, or would it be easier to just reference their location in the surveylist.pstpl file. Also, where abouts, in the surveylist.pstpl file, would I copy or reference:
<table class="survey-list-table">
<tr>
<td class="site-name">
<h1>{SITENAME}</h1>
</td>
</tr>
<tr>
<td class="survey-list-heading">
{SURVEYLISTHEADING}
</td>
</tr>
<tr>
<td class="survey-list">
<ul>{SURVEYLIST}</ul>
</td>
</tr>
<tr>
<td class="survey-contact">
{SURVEYCONTACT}
</td>
</tr>
<tr>
<td class="language-changer">
<p>{LANGUAGECHANGER}</p>
<!-- <a href=" www.limesurvey.org " target="_blank">
-->
<!-- <a href=" www.limesurvey.org " target="_blank">The Online Survey Tool Delete - Free & Open Source
-->
</td>
</tr>
</table>
<style type="text/css">
body {
background-image: url({TEMPLATEURL}gradient2.gif);
}
</style>
<!--[if lt IE 7]>
<script language="JavaScript">
jQuery.ready(function(){ correctPNG(); });
</script>
<![endif]-->
Thanks again for replying to my posts. They have been extremely helpful thus far.
rob
The topic has been locked.
- rschipull
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
8 years 7 months ago #124395
by rschipull
Replied by rschipull on topic Background color on surveylist
I just went in and took another look and the color changes have taken effect. Must have needed a few hours to take effect for some reason.
Any thoughts on the Header and Footer question?
thanks,
rob
Any thoughts on the Header and Footer question?
thanks,
rob
The topic has been locked.
- rschipull
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
8 years 7 months ago #124435
by rschipull
Replied by rschipull on topic Background color on surveylist
Just thought I'd follow up to see if anyone had any ideas on my header and footer question.
thanks,
rob
thanks,
rob
The topic has been locked.
- rschipull
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
8 years 7 months ago #124667
by rschipull
Replied by rschipull on topic Background color on surveylist
Figured I'd give it one more shot to see if anyone had any ideas on my header and footer question.
Is it possible for me to just copy, and modify, the surveylist.pstpl file in a WordPress page?
thanks,
rob
Is it possible for me to just copy, and modify, the surveylist.pstpl file in a WordPress page?
thanks,
rob
The topic has been locked.