Welcome to the LimeSurvey Community Forum

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

A diferent header in startpage.pstpl

  • roblej
  • roblej's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 month 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>
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #193366 by tpartner
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
  • roblej's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 month ago #193367 by roblej
Replied by roblej on topic A diferent header in startpage.pstpl
Version 2.64.1+170310

I still use templates :-(
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago - 4 years 1 month ago #193368 by tpartner
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 1 month ago by tpartner.
The topic has been locked.
  • roblej
  • roblej's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 month 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
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose