Background color on surveylist

More
3 years 2 months ago #124181 by rschipull
rschipull created the topic: Background color on surveylist
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

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

More
3 years 2 months ago #124186 by holch
holch replied the 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

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

More
3 years 2 months ago #124232 by rschipull
rschipull replied the 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

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

More
3 years 2 months ago #124249 by holch
holch replied the topic: Background color on surveylist
This depends very much on your template. Each template might define the background color differently.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

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

More
3 years 2 months ago #124265 by tpartner
tpartner replied the 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.

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

More
3 years 2 months ago #124300 by rschipull
rschipull replied the 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.

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

More
3 years 2 months ago #124323 by tpartner
tpartner replied the 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 )

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.

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

More
3 years 2 months ago #124365 by rschipull
rschipull replied the 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

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

More
3 years 2 months ago #124369 by rschipull
rschipull replied the 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"><img src="{TEMPLATEURL}poweredby.png" border="0" title="LimeSurvey Survey Software" /></a><br /> -->
<!-- <a href=" www.limesurvey.org " target="_blank">The Online Survey Tool Delete</a> - Free & Open Source<br /> -->
</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

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

More
3 years 2 months ago #124395 by rschipull
rschipull replied the 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

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

More
3 years 2 months ago #124435 by rschipull
rschipull replied the 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

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

More
3 years 2 months ago #124667 by rschipull
rschipull replied the 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

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

More
3 years 2 months ago #124677 by holch
holch replied the topic: Background color on surveylist
No. You need to create your header from the wordpress page in the headers and footers of the Limesurvey template. Limesurvey will not work within your wordpress page. Either you use an iframe within wordpress para show your survey within the wordpress page or you try to recreate the design of your wordpress page within the limesurvey template.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: tpartner

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!