Forum Replies Created
-
AuthorPosts
-
tobiasParticipant
Hi Casey,
after a while of trying stuff out, I was able to narrow down the problem. Basically, it was the absence of the “List Header” and “Header Navigation” code parts in list.php that caused the “null”. I threw them out because we don’t really need them, but obviously, they pull some routines related to the page title tag. Funny enough, it seems to be the presence of the DIV “tribe-events-header” that makes the difference, and not the calls of the various php actions (other than I would have suggested). I tried changing all the lines one by one, and only without the DIV, title will be set to “null”. It’s now back in our code, made invisible, so the title works correctly again.
BTW: Without the list being navigated, the error was “masked” by the title tag routine of our template. Only when the AJAX navigation changed the list, title tag management was handed over to the plugin, which cause the strange effect that the title was okay at first load, but not anymore after using the list navigation. I threw out that part of the template routine, so the plugin can handle all title tags for all views, no matter if navigated or not. And in combination with the solution mentioned above, it all works smoothly now.
Thanks again for your effort!
TobiastobiasParticipantHi Casey,
actually, the site is blocked until it’s ready to go live. Just for you, we opened it now. ๐ If you could take a look, that would be great. As you see, we customized the plugin a lot – and as you see, the site is in German only.
The problem occurs when you hover on the second menu entry, “Wann hast du Zeit?”, then selecting the second sub-entry “Liste”. Now click on “Nรคchste Veranstaltungen” and see what happens. All the sub-entries of the third menu, “Was willst du erleben?”, are category list views, too, with the same problem.
Thanks for your help,
TobiastobiasParticipantHi Casey,
in the meantime, I got rid of the other problem I mentioned and checked out your hint on our earlier thread. The page title modification in functions.php works fine, and all four if-cases (lines 24 to 35 in the GitHub code you sent me) for list views are up and running. Other cases do not apply on list views, apparently. And if I remove the filter, the “null” problem stays. So that doesn’t seem to be the problem here.
In fact, the “null” page title only occurs when I’m using the event pagination at the bottom of a list. When loading the list view, the page title set in the functions.php filter shows up correctly. When clicking on the next or past events link, AJAX reloads the list while staying on the page, but it also sets the page title to “null”. If I click back to the “present events” (the ones that are loaded by default), “null” stays. Only if I remove the “?action=tribe_list&tribe_paged=1” suffix from the URL and reload, the page title is restored to its correct form.
Any idea where this is coming from? And is there any way for me to avoid it?
Best,
TobiastobiasParticipantHi Casey,
sorry for not replying so far. Actually, I’m experiencing another problem right now that might be related – but I haven’t figured out yet what exactly is happening and if it’s probably my fault. ๐ Because of that, I wasn’t able to check your suggestion on this matter here. I’ll get back to you as soon as possible.
Thanks,
TobiastobiasParticipantHi, that kind of worked, also I found out that my template was doing some unwanted modifications which i had overseen. Fixed the two things, now it’s just fine. Thank you and best regards!
tobiasParticipantThank you! I preferred killing the whole meta output and puzzling it together myself. ๐ That did the trick.
tobiasParticipantThank you, now I see why it wasn’t working. Plus, I did the global variable thing wrong, now I got it figured out and the switch works as desired. Thanks again and best regards!
-
AuthorPosts