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
Odd Menu Item Display Issue On iPads
Avatar
Ryan Siegel
Member
Free Members
sp_UserOfflineSmall Offline
Jan 11, 2015 - 5:44 pm

Fair enough :) - I know it's a complex problem...If I can't find a simple solution - perhaps I can find a more elegant one...

Seems like kvr28's solution may be the way to go... https://simple-press.com/suppo.....s/#p147385

Avatar
Ryan Siegel
Member
Free Members
sp_UserOfflineSmall Offline
Jan 11, 2015 - 6:47 pm

Just wanted to report back that I was able to resolve the issue after all :)

Disabled mobile menu resizing of my mega menu and it resolved the issue straight away. Which works out great - since I have a mobile menu plugin takeover at lower resolutions anyways :)

Thanks again to @Kvr8 - you saying that your issue was tied to mobile displays got me thinking a bit harder on what the root issue might be :)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 11, 2015 - 7:14 pm

good news!  thanks for the update...

Avatar
Ryan Siegel
Member
Free Members
sp_UserOfflineSmall Offline
Jan 14, 2015 - 12:18 pm

Just wanted to report back one last time - It would seem that it had nothing to do with my mobile menu settings.

After a whole lot more troubleshooting I found that the text would only dissapear if the menu item page matched the exact page used for the forums...

For Example: mywebsite.com/forum - Meant that if i used "forum" for the menu item name, the text would not appear or load correctly. However if I went to appearance > menu and changed the menu item name to "forums". It loaded just fine.

I was able to replicate the issue by changing the site.com/forum page to site.com/forums - and then both the "forum" and "forums" menu item text no longer appear.... Something funky is going on here. I'm not sure if it's the forum, or my theme or what...but it's very...very odd.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 14, 2015 - 12:34 pm

We would probably need to duplicate your site with the same WP theme, SP theme and maybe even some plugins to be sure but...

There is a very old bug in WordPress. Well we call it a bug and at some point they also called it a bug when we reported it about 4-5 years ago but it still exists. So I call it a bug.

This is to do with the core  wp_list_pages() function (which does what it says on the box) which is also partly used to display menus. If a plugin wants to alter the page title on a page, it can do so with a filter quite easily and SP does want to do this to massage the page title. However, the bug appears because when pages are getting listed (in a sidebar for example) the SAME filter is applied. And yes- the same happens when the routine is used to display a menu. We think this is a bug because the filter hook is designed for the page title and should not be reused for other events. They agreed but did not fix it.

We get around this with a fix that you can turn on in the forum admin > Integration > Page and Permalink panel. Filter the wp_list_pages function. It might be worth trying that set on and off to see if that helps at all. But it might (a) affect your page title (depending upon your page title and SEO settings). And depending on how you mobile menu is created it might only affect the desktop. But worth a try.

When this does not fix the issue - often because of 3rd party factors - we will usually recommend that in the WP menu tool the automatic generation of the menu item for the forum page be removed and a custom link  put in place instead. This should always work.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Ryan Siegel
Member
Free Members
sp_UserOfflineSmall Offline
Jan 14, 2015 - 2:57 pm

I had another developer take a deeper look at the issue and this was his response: 

 

Now that I know you’re using SimplePress, I looked up the plugin and downloaded it. I did a search for  "the_title" I found it does filter that:

add_filter('the_title',    'sp_setup_page_title', 9999);

 

 

Then I looked at that function:

function

sp_setup_page_title($title) {

    

global $spGlobals, $spVars;

 
    

if (trim($title) == trim(SFPAGETITLE)) {

 
        

if (!empty($spGlobals['display']['pagetitle']['banner'])) return '';

        

if ($spGlobals['display']['pagetitle']['notitle']) return '';

 
        

$seo = array();

        

$seo = sp_get_option('sfseo');

        

$title = sp_setup_title($title, ' '.$seo['sfseo_sep'].' ');

        

$spVars['seotitle'] = $title;

    

}

    

return $title;

}

 

As you can see, it is filtering only on the Forum page title, and there are specific conditions where it returns an empty string.

While I haven’t tested this to confirm, I’m 99% sure this is the cause of your issue. 

Hope that helps!

 

I'll try your advice and see if a custom link or that forum option makes any difference. ( but i'm pretty sure I checked them both in the past....I'll double check.

Avatar
Ryan Siegel
Member
Free Members
sp_UserOfflineSmall Offline
Jan 14, 2015 - 3:11 pm

Tried the forum option and custom link in the menus - no luck on either. :(

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 14, 2015 - 3:16 pm

Not wishing to be rude but your developer is not really looking at that very closely and hasn't bothered to take a more holistic view of what is going on there.

It DOES return an empty string (1) If you have the forums set to NOT display the page title ast all or (2) if you have the option set to display a graphical banner instead of the page title. I.e., in both instances the option tells us NOT to display the title.

Did you try either of my suggestions by the way?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Ryan Siegel
Member
Free Members
sp_UserOfflineSmall Offline
Jan 14, 2015 - 3:24 pm

I did try both of them - no luck. As far as the developer stuff - Yea i'm sure it's much more complex than I realize...Just thought they might help target my particular issue, maybe even report a bug. In any event I did find a work-a-round that works for me...

What I did was changed the url of the forums page from mysite.com/forum > /forums - Then I was able to make my menu item "Forum" like I would like to.

It was kind of a trade off, since I feel that more attention would be paid to the menu item then 1 more letter in the url...

~Cheers

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 14, 2015 - 3:33 pm

It is most odd - even unheard of - that the direct link in the menu did not work. That, I think, is a first and perhaps suggests that your menu is being constructed using different tools and functions to the ones we are used to.
Sorry to hear you have had to work around it but glad also that you have managed to.

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626