Support Forum
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
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
good news! thanks for the update...
Visit Cruise Talk Central and Mr Papa's World
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.
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.
YELLOW
SWORDFISH
|
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.
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?
YELLOW
SWORDFISH
|
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
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.
YELLOW
SWORDFISH
|
1 Guest(s)