Home › Forums › Calendar Products › Events Calendar PRO › Photo view out of order
- This topic has 5 replies, 2 voices, and was last updated 6 years, 8 months ago by Tanner.
-
AuthorPosts
-
August 3, 2017 at 10:43 am #1330266TannerParticipant
Hi, I am having an issue where in photo view, when some event titles wrap to more lines than others it makes subsequent events go out of chronological order in the grid. I’ve read the other forum posts about the issue and understand that it is caused by the JQuery Isotope masonry layout. When I look at the link provided in those threads for Isotope I see that Isotope includes 9 layout modes. The included ‘fitRow’ mode would resolve this issue. Is there a way that I can choose which layout mode is being used? This would be great if it would be an option in the events display settings in WP. (just a suggestion)
I did find the Isotope files in the plugin. (//wp-content/plugins/events-calendar-pro/vendor/isotope/isotope.pkgd.js) is it possible to change the default layout mode from masonry to fitRows?
Thank you for your help.
August 4, 2017 at 8:03 pm #1331092CliffMemberHi, Tanner. Thanks for your detailed question regarding customizing /wp-content/plugins/events-calendar-pro/src/resources/js/tribe-events-photo-view.js/.min.js to useĀ https://isotope.metafizzy.co/layout-modes/fitrows.html
To my knowledge, the answer is basically the same as this previous thread.
However, this third-party blog post might be helpful.
Please let me know if you have any follow-up questions on this topic.
August 7, 2017 at 10:22 am #1331674TannerParticipantThanks so Much. That did the trick.
For the sake of anyone else who finds this thread:
The file that I edited can be found here:
events-calendar-pro/src/resources/js/tribe-events-photo-view.jsAll I had to do was to replace line 76 of the code with:
layoutMode: 'fitRows', fitRows: {
I also deleted the minified version of the file so that this change would take affect.
August 7, 2017 at 10:59 pm #1331953CliffMemberThanks for sharing your solution.
However, please note that anytime Events Calendar PRO plugin gets updated on your site, this change you made will be overwritten!
Please let me know if you have any follow-up questions on this topic.
August 29, 2017 at 9:36 am #1341875Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Photo view out of order’ is closed to new replies.