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
  • NganTran's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188539 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 topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188541 by holch

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
  • NganTran's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188557 by NganTran
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
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188569 by Joffm
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

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188571 by DenisChenu
Exactly : logo-container have hidden-xs in vanilla.
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
  • NganTran's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188572 by NganTran
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
  • NganTran's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188573 by NganTran
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?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188575 by DenisChenu
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

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
  • NganTran's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188587 by NganTran
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
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188594 by tpartner
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.

Lime-years ahead

Online-surveys for every purse and purpose