- Posts: 8
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Logo and progress bar do not show up in mobile view
- NganTran
- Topic Author
- Offline
- New Member
Less
More
4 years 7 months ago #188539
by NganTran
Logo and progress bar do not show up in mobile view was created by NganTran
I am using LS 3.17.13 and an extended theme of fruity. I have a logo and progress bar for the survey. They work fine if using the laptop but do not show up in mobile view. Majority of my respondents are using mobile to fill in the survey so this is a serious annoying issue. I cannot change the theme as it is required by the owner of 1 measurement I used in the survey.
The survey is active at chatluongcuocsong.limequery.com/492931
Please help.
Thank you very much!
The survey is active at chatluongcuocsong.limequery.com/492931
Please help.
Thank you very much!
Attachments:
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11655
- Thank you received: 2740
4 years 7 months ago #188541
by holch
It is obviously a theme issue, so I am not sure what you want us to say. If the theme doesn't show the logo and the progressbar, the only way to show it is to modify the theme, I guess...
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Logo and progress bar do not show up in mobile view
I cannot change the theme
It is obviously a theme issue, so I am not sure what you want us to say. If the theme doesn't show the logo and the progressbar, the only way to show it is to modify the theme, I guess...
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- NganTran
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
4 years 7 months ago #188557
by NganTran
Replied by NganTran on topic Logo and progress bar do not show up in mobile view
I am sorry to be unclear. I mean I cannot change to another theme but I can modify the current theme. So if there is a way to fix that issue by modify the code, I can do so. Please help! Thank you very much
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12911
- Thank you received: 3975
4 years 7 months ago #188569
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Logo and progress bar do not show up in mobile view
Hi,
that's what holch said: Obviously it's a theme issue.
There might be some media queries "@media (min-width: 768px) { ... }" or some bootstrap classes like ".hidden-xs" that don't display some elements on small screens.
So you have to examine the theme.
Joffm
that's what holch said: Obviously it's a theme issue.
There might be some media queries "@media (min-width: 768px) { ... }" or some bootstrap classes like ".hidden-xs" that don't display some elements on small screens.
So you have to examine the theme.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
4 years 7 months ago #188571
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 Logo and progress bar do not show up in mobile view
Exactly : logo-container have hidden-xs in vanilla.
github.com/LimeSurvey/LimeSurvey/blob/7a...der/nav_bar.twig#L33
Easy fix : remove it
github.com/LimeSurvey/LimeSurvey/blob/7a...der/nav_bar.twig#L33
Easy fix : remove it
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 topic has been locked.
- NganTran
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
4 years 7 months ago #188572
by NganTran
Replied by NganTran on topic Logo and progress bar do not show up in mobile view
Could you please let me know which file should I look at? I am new to Limesurvey and I also do not have coding experience so please kindly advise more specific. Thank you very much
The topic has been locked.
- NganTran
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
4 years 7 months ago #188573
by NganTran
Replied by NganTran on topic Logo and progress bar do not show up in mobile view
Should I delete the whole one
{% if( aSurveyInfo.options.brandlogo == "on") %}
<div class="{{ aSurveyInfo.class.navbarbrand }} logo-container hidden-xs" {{ aSurveyInfo.attr.navbarbrand }} >
{{ image(aSurveyInfo.options.brandlogofile, aSurveyInfo.name, {"class": "logo img-responsive"}) }}
</div>
or just some parts of it?
{% if( aSurveyInfo.options.brandlogo == "on") %}
<div class="{{ aSurveyInfo.class.navbarbrand }} logo-container hidden-xs" {{ aSurveyInfo.attr.navbarbrand }} >
{{ image(aSurveyInfo.options.brandlogofile, aSurveyInfo.name, {"class": "logo img-responsive"}) }}
</div>
or just some parts of it?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
4 years 7 months ago #188575
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 Logo and progress bar do not show up in mobile view
1. You already use an extended theme, the use Template editor
2. manual.limesurvey.org/New_Template_System_in_LS3.x
3. Juste remove `hidden-xs` class
2. manual.limesurvey.org/New_Template_System_in_LS3.x
3. Juste remove `hidden-xs` class
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 topic has been locked.
- NganTran
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
4 years 7 months ago #188587
by NganTran
Replied by NganTran on topic Logo and progress bar do not show up in mobile view
Thank you so much. The logo show perfectly fine now. However, the progress bar is still missing. How can I fix it? I assume it should be the problem with progress_bar.twig so I looked at the code there but have no clue
Code:
{# do not show on "completed/thank you page" page #} {% if not aSurveyInfo.aCompleted %} <!-- Top container --> <div class="{{ aSurveyInfo.class.topcontainer }} space-col" {{ aSurveyInfo.attr.topcontainer }} > <div class="{{ aSurveyInfo.class.topcontent }} container-fluid" {{ aSurveyInfo.attr.topcontent }} > {% if aSurveyInfo.format != 'A' and aSurveyInfo.showprogress is defined and aSurveyInfo.showprogress == 'Y' %} {{ registerPublicCssFile('lime-progress.css') }} {% set progressValue = ( aSurveyInfo.progress.total > 0 ) ? intval( (aSurveyInfo.progress.currentstep - 1) / aSurveyInfo.progress.total * 100 ) : 0 %} <div class="{{ aSurveyInfo.class.progress }}" {{ aSurveyInfo.attr.progress }}> <div class="{{ aSurveyInfo.class.progressbar }}" {{ aSurveyInfo.attr.progressbar }} role="progressbar" aria-valuenow="{{ progressValue }}" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em; width: {{ progressValue }}%;"> {{ progressValue }}% </div> </div> {% endif %} </div> <!-- must hide it without javascript --> </div> {% endif %}
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10104
- Thank you received: 3593
4 years 7 months ago #188594
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 Logo and progress bar do not show up in mobile view
Remove the following rule at line 120 of your custom.css file:
Code:
.top-container { display: none; }
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.