Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Forum triggers WP Theme mobile menu
Avatar
boborg
Member
sp_UserOfflineSmall Offline
Feb 13, 2014 - 3:05 am

I am in the proces of moving to a new theme. Everything seems to work fine apart from 1 page. On the forum page I am seeing the mobile menus in the desktop browser as well as the regular menus. Any ideas as to why this happens?

It only happens on that specific page so I guess it is triggered by the forum plugin but I am not clever enough to see why.

I am testing the site here: digitalt.staging.wpengine.com/forum/

Best regards
Bo

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 13, 2014 - 3:49 am

To be perfectly honest then no - I can't.

I DO see that your WP theme is loading the same 'mobilemenu' javascript library as we use. But - I also note that after your WP theme version is loaded the Simple:Press file is not - which is how it should be.

But I also see that your nav menu when the mobilemenu script transforms it, has a class name of 'spmobilemenu' which has the 'sp' prefix. Where it is getting that from I really have no idea. Nor why it should be visible as I can see no CSS rules causing it to be displayed.

Actually - I see two select boxes on the forum page - one above the site graphic at the top and one below the normal menu.

I will certainly look at our coding but I can already see that your mobile menu IS getting defined by the WP theme scripts and using the WP theme element ID names which should divorce it entirely from any forum page content. The key, perhaps, is finding out what is changing the display status...

andy-signature.png
YELLOW
SWORDFISH
Avatar
boborg
Member
sp_UserOfflineSmall Offline
Feb 15, 2014 - 4:05 am

Let me know if you need admin access to test site and I will provide you with a login.

Best regards
Bo

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 15, 2014 - 4:57 am

I don't think that is necessary. I can see what is and what is not being loaded and also see the final html and css etc. And that is why I am somewhat stumped because the page is not loading the SP mobile menu code and you are bot using an SP mobile theme so it is not trying to load the mobile menu control either which only happens using our Unified theme - which you are not.

We named our script file mobilemenu without the knowledge that there was already one named this that some users might have so there is a potential for a namespace clash. I have changed this in readiness for the next update. But... as it is not getting loaded or used I still fail to see this as the issue here.

But I am still digging. Can you confirm exactly which SP theme you are using?

andy-signature.png
YELLOW
SWORDFISH
Avatar
boborg
Member
sp_UserOfflineSmall Offline
Feb 15, 2014 - 5:11 am

I noticed that if I comment out line 80 in sp-forum-framework.php

/* $script = (defined('SP_SCRIPTS_DEBUG') && SP_SCRIPTS_DEBUG) ? SFJSCRIPT.'mobile/mobilemenu-dev.js' : SFJSCRIPT.'mobile/mobilemenu.js'; */

there are no false mobile menu beeing shown. What are the issues will I face by having this line commented out?

My WP Theme loads /wp-content/themes/wp-clear321/js/jquery.mobilemenu.js?ver=3.8.1

The theme I am using is Premium Theme WP-Clear 321 from http://www.solostream.com/word...../wp-clear/

Best regards
Bo

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 15, 2014 - 5:44 am

Well that depends on the answer to the question I asked about which SP theme you were using. If you are NOT using Unified then it should not matter. But here is what I do not understand. When I looked at the source being generated for your page then I did not see that javascript file being loaded in any case. I only saw the one supplied by your WP theme....

As I say - we have already changed the file name and the namespace for the next update of SP.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620