Flipping between months doesn't load apropriate category description content

Home Forums Calendar Products Community Events Flipping between months doesn't load apropriate category description content

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1078663
    Steve
    Participant

    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!

    #1079938
    Brian
    Keymaster

    Hi,

    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

    #1080356
    Steve
    Participant

    Thanks 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.
    #1080615
    Brian
    Keymaster

    Not 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

    #1081145
    Steve
    Participant

    Thanks! 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

    #1081351
    Brian
    Keymaster

    Oh 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

    #1087206
    Support Droid
    Keymaster

    This 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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Flipping between months doesn't load apropriate category description content’ is closed to new replies.