Welcome to the LimeSurvey Community Forum

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

How to make two minor change to the tempate ubuntu orange in limesurve 2.73.1

  • mrli999
  • mrli999's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 2 weeks ago - 4 years 2 weeks ago #195895 by mrli999
Hello,

I am now using tempate ubuntu orange in limesurvey 2.73.1

I would like to make two minor change to the template's banner


1. Align the surveyname - TestSurvey center.

2. Add a new text click after 'Exit and Clear Survey'. That is there should have three text clicks: Resume Later, Exit and Clear Survey, the new click.

Thanks.

By the way, which template in limesurvey 4 is most close to ubuntu organge template in limesurvey 2.73?
Last edit: 4 years 2 weeks ago by mrli999.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks ago - 4 years 2 weeks ago #195903 by tpartner
1) There may not be room for the survey title in the center if you add a link to the menu.

2) Add something like this to the end of template.js:

Code:
$(document).ready(function(){
    $('.navbar-right').append('<li><a href="http://pathToMyLink/">Custom link</a></li>');
});


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 2 weeks ago by tpartner.
The topic has been locked.
  • mrli999
  • mrli999's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 2 weeks ago #195936 by mrli999

tpartner wrote: 1) There may not be room for the survey title in the center if you add a link to the menu.

2) Add something like this to the end of template.js:

Code:
$(document).ready(function(){
    $('.navbar-right').append('<li><a href="http://pathToMyLink/">Custom link</a></li>');
});


I copied <li><a href="http://pathToMyLink/">Custom link to the navigator.pstpl, it works now. Thanks.

However, another question:

In the image your provided, the "Exit and Clear Survey" and "Custom link" align right. But in my survey, they don't align right, there seems many blank in the right. How to align them right?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks ago #195942 by tpartner
I have no clue without seeing a live example.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: mrli999
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose