Welcome to the LimeSurvey Community Forum

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

Removing Survey Name and Exit & Clear on topsurveymenubar

  • snathan99
  • snathan99's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 3 months ago #160910 by snathan99
Hello Guys:

Just wanted to post what I did to remove both Survey Name and Exit & Clear Option. Basically the topsurveymenubar.

In "scripts/template.js" file I added line:
$('#topsurveymenubar').detach();

Below is the block where I added it:
//topsurveymenubar

// Added by Senthil
$('#topsurveymenubar').detach();

var topsurveymenubarHeight = $('#topsurveymenubar').innerHeight();
var outerframeDistanceFromTop = topsurveymenubarHeight;


Looking at the views/startpage.pstpl file it appears this will also remove:
SAVE_LINKS & QUESTION_INDEX_MENU besides CLEARALL_LINKS

I have tested by survey and it looks all good.

I am still not sure how to remove the top margin where the bar was.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 3 months ago #160917 by Joffm
Hi, snathan,
did understand it? You are going to remove the entire top bar, where there is the survey name and the links to resume later or to clear and leave?

I just removed from "startpage.pstpl" the part
Code:
<nav class="navbar navbar-default navbar-fixed-top" id="topsurveymenubar">
        <div class="navbar-header col-xs-12 col-sm-6 col-lg-8">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <span class="navbar-brand col-xs-10 col-sm-10 col-sm-offset-2" >{SURVEYNAME}</span>
        </div>
 
        <div id="navbar" class="navbar-collapse collapse col-xs-12">
            <ul class="nav navbar-nav">
            </ul>
            <ul class="nav navbar-nav navbar-right">
                {SAVE_LINKS}
                {CLEARALL_LINKS}
                {QUESTION_INDEX_MENU}
            </ul>
        </div><!--/.nav-collapse -->
    </nav>


But of course there are always many different ways to do it.
Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose