Home › Forums › Calendar Products › Events Calendar PRO › Next / Previous Month Link Not Working
- This topic has 7 replies, 2 voices, and was last updated 11 years, 1 month ago by
George.
-
AuthorPosts
-
February 25, 2015 at 8:10 am #944688
printandpixel
ParticipantSuddenly, the next/previous month link is not working on on my site http://www.mtsterlingchamber.com/events
<I have currently switched the default view to List to make sure events are shown.)
I found this forum https://theeventscalendar.com/support/forums/topic/events-calendar-pro-next-month-links-not-working/ solutions, with a solution, but I do not understand where to replace <?php body_class(); ?> in my header.php —
Thanks for the help!
February 25, 2015 at 8:14 am #944690George
ParticipantHey @printandpixel,
I visited the link you provided, http://www.mtsterlingchamber.com/events, and found that the Next and Previous links were indeed working correctly.
Is this because you figured out adding the solution you linked to in your post?
Another thing I’m curious about is your comment where you said:
I have currently switched the default view to List to make sure events are shown.
By this comment, do you mean that calendar views other than the List View were not displaying events? Because if so, that could hint at deeper issues here.
Thanks,
GeorgeFebruary 25, 2015 at 8:47 am #944699printandpixel
ParticipantGeorge –
Thanks for taking a look. What I meant in my first post is that I changed the default view to List, because the next/previous links work there. However, if you switch to Month view they do not.
This site was originally a joint project and since this issue has come up, I realize that the other developer (for some reason) opted to unregister the header.php. I am VERY concerned this is going to cause more issues and want to move forward cautiously. With the header.php unregistered I am at a loss as where to add the <?php body_class(); ?> solution.
February 25, 2015 at 9:30 am #944713George
ParticipantHey @printandpixel,
Thanks for elaborating on that and clarifying what you meant there. I checked out the Month View on your events page and indeed found that the Next/Prev links did not work.
As for your theme developer unregistering header.php, this could be seriously problematic – if your theme has several different templates, and all templates manually have their HTML <head>s added directly in the file instead of calling the WordPress function get_header(), this can actually be okay as long as wp_head() is called in every instance and body_class() is added appropriately in the opening <body> tags.
But if there’s something other than I described here going on that your theme developer did, that could be pretty bad news and require fixing. Is there any way you can ask your developer for clarification on exactly what changes they made in regards to header.php or the theme header in general? If so, please let us know their response.
One step I’d recommend taking here is to temporarily activate a default theme like Twenty Twelve (or a more recent one) on your site – what do you find when you do this, in both List View and Month View?
Thanks!
GeorgeFebruary 25, 2015 at 9:37 am #944714printandpixel
ParticipantOi, Greg – I have contacted the developer that I partnered with on this project, but have not heard back. Nor do I think I will. 🙁
I have looked at the templates and do not see HTML heads added into the files. This being a much bigger problem is exactly what I was afraid of. Thanks for verifying that. At least for now the list view previous/next links are working and will buy me time to figure out the next step.
I will turn on the TwentyTwelve theme late tonight when it is less likely to be seen by site visitors and report back.
February 25, 2015 at 9:43 am #944717printandpixel
ParticipantOh one more thing Greg. I went in and looked over the functions.php and a few templates files. It appears that the header.php files is completely being ignored. Meaning that in the functions.php file that the developer wrote a snippet to remove_action = header.php >
It seems I have much larger issue at hand.
February 25, 2015 at 10:01 am #944719George
ParticipantHey @printandpixel,
Thanks for the update. I’m sorry to hear about your theme developer’s absence, but for now, I think activating the Twenty Twelve theme is the best step here. I’ll stay tuned for you to do this later on, and to hear what you find by doing so.
If the entirety of your problems is coming from your custom theme, there’s unfortunately a very limited amount we can help with, as the theme itself would be broken and we can’t really fix other party’s code. However, it’s a good step to at least find the source of the problem, and if we can confirm your custom theme is the problem, then hopefully we can at least recommend a few code snippets or other steps to get things moving.
Keep us posted on how activating Twenty Twelve goes!
Cheers,
GeorgeMarch 21, 2015 at 12:25 pm #949907George
ParticipantHello,
This issue’s been sitting here a while so I’m going to go ahead and close it for now – if other issues arise, don’t hesitate to come back and open a new ticket, and if you need to open a new ticket about the same issues you originally brought up here, please share a link to this original ticket so we can pick up where we left off.
Cheers!
George -
AuthorPosts
- The topic ‘Next / Previous Month Link Not Working’ is closed to new replies.
