- Posts: 33
- Thank you received: 2
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
- Topic Author
- Offline
- Junior Member
Less
More
6 months 3 days ago #251440
by jorgesinval
Sinval
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
6 months 2 days ago #251449
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Theme with logo on the mobile version
Have a look at these posts.
- forums.limesurvey.org/forum/design-issue...rtrait-format#250912
- forums.limesurvey.org/forum/can-i-do-thi...e-screen-size#250675
- forums.limesurvey.org/forum/design-issue...rtrait-format#250912
- forums.limesurvey.org/forum/can-i-do-thi...e-screen-size#250675
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 2
6 months 2 days ago - 6 months 2 days ago #251489
by jorgesinval
Sinval
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:
But it is not working. Which would be my absolute path?
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 2
6 months 1 day ago #251509
by jorgesinval
Sinval
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.
"/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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
6 months 1 day ago - 6 months 1 day ago #251523
by DenisChenu
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.
Replied by DenisChenu on topic Theme with logo on the mobile version
Best :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?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
6 months 1 day 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 service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Theme with logo on the mobile version
Done : manual.limesurvey.org/Theme_editor_-_Ava...Twig_functions#image(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.
The following user(s) said Thank You: jorgesinval
Please Log in to join the conversation.
- jorgesinval
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 2
6 months 1 day ago #251525
by jorgesinval
Sinval
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 2
6 months 1 day ago #251530
by jorgesinval
Sinval
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
6 months 1 day ago #251531
by DenisChenu
(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.
Replied by DenisChenu on topic Theme with logo on the mobile version
typo … thank youDoes your code have a square bracket that is a typo? I mean after "something"
(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.