Welcome to the LimeSurvey Community Forum

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

Theme with logo on the mobile version

  • jorgesinval
  • jorgesinval's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 months 3 days ago #251440 by jorgesinval
Theme with logo on the mobile version was created by jorgesinval
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.3.1
Own server or LimeSurvey hosting: own
Survey theme/template: any with logo
==================
I am using one of the core themes (i.e., fruity) I am able to add the logo and see it in the full view. However, when I select other views (e.g., mobile, 640x480) the logo does not appear. I searched in the manual for an option to allow it, but I only found an option to center the logo.

Thank you for any possible help.

Sinval

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 2 days ago #251449 by tpartner
Replied by tpartner on topic Theme with logo on the mobile version

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

  • jorgesinval
  • jorgesinval's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 months 2 days ago - 6 months 2 days ago #251489 by jorgesinval
Replied by jorgesinval on topic Theme with logo on the mobile version
Thank you very much, Tony. Your solution is almost working, I just need to set the absolute path as I saw in one of the posts you shared. The relative path just brings the "alt" text. I tried:
Code:
<img class="logo img-fluid" src="./files/name_of_my_file.png" alt="something">

But it is not working. Which would be my absolute path?

Sinval
Last edit: 6 months 2 days ago by jorgesinval. Reason: Add details

Please Log in to join the conversation.

  • jorgesinval
  • jorgesinval's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 months 1 day ago #251509 by jorgesinval
Replied by jorgesinval on topic Theme with logo on the mobile version
In case someone needs, based on this discussion:

"/upload/themes/survey/my_fancy_theme/files/logo.png"

replace "my_fancy_theme" with the name of the theme you are using.

Sinval

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 1 day ago - 6 months 1 day ago #251523 by DenisChenu
Replied by DenisChenu on topic Theme with logo on the mobile version

Thank you very much, Tony. Your solution is almost working, I just need to set the absolute path as I saw in one of the posts you shared. The relative path just brings the "alt" text. I tried:
Code:
<img class="logo img-fluid" src="./files/name_of_my_file.png" alt="something">

But it is not working. Which would be my absolute path?
Best :
Code:
{{ image("./files/name_of_my_file.png", "something", {"class": "logo img-fluid"}) }}

Then it use assets and get the logo from the childs theme if needed too

See : github.com/LimeSurvey/LimeSurvey/blob/8d....twig#L41C18-L41C110

(not documented function :( manual.limesurvey.org/Theme_editor_-_Available_Twig_functions )

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 6 months 1 day ago by DenisChenu.
The following user(s) said Thank You: jorgesinval

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 1 day ago #251524 by DenisChenu
Replied by DenisChenu on topic Theme with logo on the mobile version

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: jorgesinval

Please Log in to join the conversation.

  • jorgesinval
  • jorgesinval's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 months 1 day ago #251525 by jorgesinval
Replied by jorgesinval on topic Theme with logo on the mobile version
Thank you so much, @DenisChenu. This forum is full of great people who are available to help others.

Sinval
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • jorgesinval
  • jorgesinval's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 months 1 day ago #251530 by jorgesinval
Replied by jorgesinval on topic Theme with logo on the mobile version
Does your code have a square bracket that is a typo? I mean after "something"

Sinval
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 1 day ago #251531 by DenisChenu
Replied by DenisChenu on topic Theme with logo on the mobile version

Does your code have a square bracket that is a typo? I mean after "something"
typo … thank you
(fixed)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: jorgesinval

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose