The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

link to change to forumotion mobile

View previous topic View next topic Go down

In progress link to change to forumotion mobile

Post by mcdk on October 31st 2015, 6:16 pm

hello.
can i put a link in the top of the forum to change into the forumotion mobile template instead of having it in the footer where the users usually do not look at?
thanks.

mcdk
Forumember

Male Posts : 135
Reputation : 1
Language : Greek

Back to top Go down

In progress Re: link to change to forumotion mobile

Post by SLGray on October 31st 2015, 7:47 pm

Is there not a drop-down menu that has the link at the top?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36701
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: link to change to forumotion mobile

Post by mcdk on October 31st 2015, 10:15 pm

In the mobile addition , there is the top dropdown that you can go to the classic version of the forum.
But after , you there is no link in the top toolbar to go to the mobile.
There is only in the footer.
THANKS

mcdk
Forumember

Male Posts : 135
Reputation : 1
Language : Greek

Back to top Go down

In progress Re: link to change to forumotion mobile

Post by Ange Tuteur on October 31st 2015, 10:31 pm

Hi @mcdk,

Try the following.

Go to Modules > JavaScript codes management and create a new script with the following settings :

Placement : In all the pages
Code:
$(function() {
  var mobi = $('a.small[href*="?mobile"]')[0], li, menu;

  if (mobi && _userdata.activate_toolbar) {
    $(function() {
      li = document.createElement('LI');
      menu = document.getElementById('fa_menulist');
     
      li.appendChild(mobi.cloneNode(true));
      menu.appendChild(li);
    });
  }
});

Save when you're finished and this script should add a link to the toolbar menu list.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: link to change to forumotion mobile

Post by mcdk on November 1st 2015, 12:36 am

thanks i'll try this.
and one more question.
can i remove when someone is from mobile , the classic version? i mean the link that can choose the user to go into the classic version.
furthermore , can i put over these some other link?
thnaks.

mcdk
Forumember

Male Posts : 135
Reputation : 1
Language : Greek

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum