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.

Making "Classic Version" the default

View previous topic View next topic Go down

Solved Making "Classic Version" the default

Post by troyeccles on March 30th 2014, 4:00 am

Hello,

I've received comments from non-members on my board that the mobile version looks awful and is the reason they've not come back to visit.

I realise that all they have to do is select "Classic Version" but it would seem that a lot of people that have looked at the site have left immediately not liking what they've seen.

Ok so...is there a way of making the "Classic Version" the default whether someone views on a mobile device or not?

I've tried to disable the Mobile Version completely by putting the following code into a javascript and selecting "In all the pages" but it's not had any effect:

[panda=js]$(function() {
if(window._userdata && _userdata.page_desktop) window.location = _userdata.page_desktop;
});


So can I either set the default version to "Classic" and leave the ability to switch to the mobile version if preferred or disable the mobile version completely (as per the non-working script above)?

Many thanks in advance.

Troy.

troyeccles
Forumember

Posts : 296
Reputation : 5
Language : English

Back to top Go down

Solved Re: Making "Classic Version" the default

Post by troyeccles on March 30th 2014, 11:38 am

An update. I tried a slight variation on the above code:

$(function() {
if(window._userdata && _userdata.page_desktop) window.location = _userdata.page_desktop;
});




And this appears to be working now. It goes to the mobile version very briefly before redirecting.


As far as I'm concerned, this is solved. Sorry.

troyeccles
Forumember

Posts : 296
Reputation : 5
Language : English

Back to top Go down

Solved Re: Making "Classic Version" the default

Post by Ange Tuteur on March 30th 2014, 1:24 pm

Thanks for posting the solution.

Topic solved and archived

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

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