Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Different body class

Different body class 2 years 5 months ago #104724

  • Pulsor
  • Pulsor's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hello Everyone,

I'm new here. I posted this on the Design section too, since I don't know where to put it exactly.


I need to know if there's a way to add a code in the
<body class="default lang-{SURVEYLANGUAGE} {SURVEYFORMAT}">
(the body class line of startpage.pstpl).

What I'm trying to accomplish is to add different backgrounds: in the welcome page, question pages, and in the endpage.

If the answer's no, please be sure that the 'no' is definitive.


Thanks in advance guys!
The topic has been locked.

Different body class 2 years 5 months ago #104738

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9254
  • Thank you received: 1319
  • Karma: 382
Hi,

No included word for this. Can be done only in javascript :
welcome.pstpl, add:
<script>$("body").addClass('welcome');</script>
etc for the other.

Crossposting :angry:
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
Last Edit: 2 years 5 months ago by DenisChenu.
The topic has been locked.
Moderators: ITEd
Time to create page: 0.212 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form