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

TOPIC: Different body class

Different body class 2 years 9 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 9 months ago #104738

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9555
  • Thank you received: 1373
  • Karma: 389
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 development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
Last Edit: 2 years 9 months ago by DenisChenu.
The topic has been locked.
Time to create page: 0.205 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form