Home › Forums › Calendar Products › Events Calendar PRO › Empty URL on event category pages
- This topic has 8 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
June 12, 2012 at 8:16 pm #20607
highasp
ParticipantWhen clicking on an event category that has no scheduled events in the current month there is no title nor permalink info at the top of the page. So for example –
http://shoholatwp.org/events/category/board-meetings/ – is fine
http://shoholatwp.org/events/category/office-closures/ – is missing the category permalink and page title.Any ideas on how I can fix this?
June 13, 2012 at 3:53 pm #20635Jonah
ParticipantHi Elizabeth,
Sorry to hear about this. Have you tried switching the Events Template in Settings > The Events Calendar > Template? Try that and let me know if that does anything.
Thanks,
JonahJune 13, 2012 at 8:33 pm #20654highasp
ParticipantHi Jonah! Thank you for your response. Changing the template worked! Awesome!
I also managed to find the code from the events template that I should be using and figured it would be easier to update my page template with that one line than adding my changes to the events template. I’m trying to add it as an if/else statement, except that I’m doing something wrong. Would you be able to take a look and let me know what I’m doing wrong?
page_parent ) { // the page is “Events”, or the parent of the page is “Events” ?>
<a href="” rel=”bookmark” title=” “>
June 13, 2012 at 8:38 pm #20655highasp
ParticipantLet me try again…
page_parent ) { // the page is "Events", or the parent of the page is "Events" ?>
<a href="" rel="bookmark" title=" ">
June 13, 2012 at 8:45 pm #20656highasp
ParticipantSorry for the multiple posts! Figured out pastebin (I hope!) – http://pastebin.com/gmLPt5Ep
June 14, 2012 at 8:50 am #20670Jonah
ParticipantHi Elizabeth,
I don’t think there should be an actual page for events because the plugin automatically creates one and is_page() won’t work to detect that page. Instead you can use portions of this code as your conditionals for the various event related pages: https://gist.github.com/2415009
Does that help?
– Jonah
June 14, 2012 at 7:14 pm #20681highasp
ParticipantHey Jonah that was exactly the info I needed! Thank you so much for your help!
June 17, 2012 at 7:50 pm #20743Jonah
ParticipantGlad to hear it! Let me know if there’s anything else you need with this.
Cheers,
JonahJuly 7, 2015 at 6:21 am #977093Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Empty URL on event category pages’ is closed to new replies.
