- Posts: 22
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
A diferent header in startpage.pstpl
- roblej
- Topic Author
- Offline
- Junior Member
Less
More
4 years 2 months ago #193329
by roblej
A diferent header in startpage.pstpl was created by roblej
Hi there,
I would like to be able to use a different header graphic for the first page, the token page, than in the rest of the survey.
Please, can you sugest how to do this?
thank you
<body class="default lang-{SURVEYLANGUAGE} {SURVEYFORMAT}">
<div class="container header">
<div class="row">
<div class="col-xs-12 col-md-9">
<img class="mainlogo" src="{TEMPLATEURL}files/header1_{SURVEYLANGUAGE}.png" alt="" />
</div>
<div class="col-xs-12 col-md-3">
{LANGUAGECHANGER}
<div id="langlist"></div>
<!-- Logo cliente -->
</div>
</div>
</div>
I would like to be able to use a different header graphic for the first page, the token page, than in the rest of the survey.
Please, can you sugest how to do this?
thank you
<body class="default lang-{SURVEYLANGUAGE} {SURVEYFORMAT}">
<div class="container header">
<div class="row">
<div class="col-xs-12 col-md-9">
<img class="mainlogo" src="{TEMPLATEURL}files/header1_{SURVEYLANGUAGE}.png" alt="" />
</div>
<div class="col-xs-12 col-md-3">
{LANGUAGECHANGER}
<div id="langlist"></div>
<!-- Logo cliente -->
</div>
</div>
</div>
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10098
- Thank you received: 3589
4 years 2 months ago #193366
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 A diferent header in startpage.pstpl
What LimeSurvey version and theme are you using?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- roblej
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 22
- Thank you received: 0
4 years 2 months ago #193367
by roblej
Replied by roblej on topic A diferent header in startpage.pstpl
Version 2.64.1+170310
I still use templates
I still use templates
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10098
- Thank you received: 3589
4 years 2 months ago - 4 years 2 months ago #193368
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 A diferent header in startpage.pstpl
Try adding something like this to the end of welcome.pstpl. This example will replace "header1" in the image source with "header2".
Code:
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $('.mainlogo').attr('src', $('.mainlogo').attr('src').replace(/header1/, 'header2')); }); </script>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 2 months ago by tpartner.
The topic has been locked.
- roblej
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 22
- Thank you received: 0
4 years 2 months ago #193369
by roblej
Replied by roblej on topic A diferent header in startpage.pstpl
thank you very much. I will try and let you know the result
thanks again
thanks again
The topic has been locked.