Welcome to the LimeSurvey Community Forum

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

Theme with logo on the mobile version

More
1 year 10 months ago #251440 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.

More
1 year 10 months ago #251449 by tpartner

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.

More
1 year 10 months ago - 1 year 10 months ago #251489 by jorgesinval
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: 1 year 10 months ago by jorgesinval. Reason: Add details

Please Log in to join the conversation.

More
1 year 10 months ago #251509 by jorgesinval
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.

More
1 year 10 months ago - 1 year 10 months ago #251523 by DenisChenu

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 :( www.limesurvey.org/manual/Theme_editor_-...lable_Twig_functions )

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 1 year 10 months ago by DenisChenu.
The following user(s) said Thank You: jorgesinval

Please Log in to join the conversation.

More
1 year 10 months ago #251524 by DenisChenu

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

Please Log in to join the conversation.

More
1 year 10 months ago #251525 by jorgesinval
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.

More
1 year 10 months ago #251530 by jorgesinval
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.

More
1 year 10 months ago #251531 by DenisChenu

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 support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: jorgesinval

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose