Home › Forums › Calendar Products › Community Events › Flipping between months doesn't load apropriate category description content
- This topic has 6 replies, 3 voices, and was last updated 8 years, 2 months ago by Support Droid.
-
AuthorPosts
-
February 19, 2016 at 6:53 pm #1078663SteveParticipant
You can see here the logo for the category doesn’t reload upon clicking forward or back a month. Any idea what’s up here? Thanks!
February 22, 2016 at 8:51 am #1079938BrianKeymasterHi,
Thanks for using our plugin. I can try to help out here, but we are limited in supporting customizations.
I took a look at your site and div around the image is being loaded, but not the image itself.
I loaded your exact coding on my test site and was able to get it to work.
So not sure what the issue is. You can run through our testing for conflicts guide to to see if that can help narrow down your issue:
https://theeventscalendar.com/knowledgebase/testing-for-conflicts/
We are limited in troubleshooting a customization much more then this though.
Thanks
February 22, 2016 at 6:29 pm #1080356SteveParticipantThanks for taking a look. I’m trying to simply display the event category description. I have added this and only this within the page template. Nothing fancy here.
<div id="events-category"> <?php if( is_tax() ) { echo term_description( get_queried_object_id(), 'tribe_events_cat' ); } ?> </div>
It outputs this and works great on initial page load:
<div id="events-category"> <h2> <a rel="attachment wp-att-1819" href="mast.gif"> <img class="alignnone size-full wp-image-1819" width="209" height="105" alt="mast" src="mast.gif"> </a> Happenings </h2> </div>
When I click the next month, it renders like this, essentially filtering the code.
<div id="events-category"> <p> <a href="http://www.fortpondbaycompany.com/app/wp-content/uploads/2016/02/harvestonhudsonmast.gif"></a> Happenings </p> </div>
What’s going on there? I have no javascript errors in the console. I’ve had issues previously with how the page loads the next and previous months, I’m trying to understand how the ajax loads work and why they render differently than an ordinary page load.
Finally, is there a way to turn off the AJAX loads and simply force a regular loading of the next month using the regular URL method?
Thanks!
- This reply was modified 8 years, 2 months ago by Steve.
February 23, 2016 at 5:12 am #1080615BrianKeymasterNot sure what the issue is I tested and see the same result however, there is not much I can change for this as it is not a feature we support. We can look into it, but not sure on a timeline for that.
If you move the coding to this template instead:
plugins/the-events-calendar/src/views/month.php
It will show and does not change with the ajax.
Or I have this coding to disable the Javascript for next and previous links:
https://gist.github.com/jesseeproductions/e787d5dd5c0e943f172f
February 23, 2016 at 5:31 pm #1081145SteveParticipantThanks! That code snippet was exactly what I was looking for, unfortunately it didn’t work and the months continue to load with AJAX. Does this snip work for you on your test environment with the current version of the plug?
I will try the other method too. Cheers
February 24, 2016 at 4:43 am #1081351BrianKeymasterOh my bad.
I changed the snippet for month view and tested it plus the other 2 and all worked for me in 4.0.6 to disable the AJAX.
Let me know if that works for you.
Thanks
March 10, 2016 at 8:35 am #1087206Support DroidKeymasterThis 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 ‘Flipping between months doesn't load apropriate category description content’ is closed to new replies.