Support Forum
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
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...
YELLOW
SWORDFISH
|
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?
YELLOW
SWORDFISH
|
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
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.
YELLOW
SWORDFISH
|
1 Guest(s)