Uncaught ReferenceError: container is not defined
-
I have been trying to troubleshoot event calendar with pingboard theme. The events for a day extend outside the day container.
example:
https://www.marseillesrecboard.org/iasc/events/When visiting that page dev tools throws the aforementioned error. I am not sure if that is what causes the test to move outside the cell or not. This is the only error I see, and it does seem to be related.
code area:
var $content = $(‘.entries’);
$content.imagesLoaded(function() {
$content.masonry({
itemSelector : ‘.hentry, #infscr-loading’,
columnWidth : container.querySelector(‘.twocol’),
});
});Is it saying .twocol is not defined?
Maybe something in the pinboard teaser class and how event calendar is using it? I am unsure
<?php if( ! is_singular() || is_page_template( ‘template-blog.php’ ) || is_page_template( ‘template-blog-full-width.php’ ) || is_page_template( ‘template-blog-four-col.php’ ) || is_page_template( ‘template-blog-left-sidebar.php’ ) || is_page_template( ‘template-blog-no-sidebars.php’ ) || is_page_template( ‘template-blog-no-sidebars.php’ ) || is_page_template( ‘template-portfolio.php’ ) || is_page_template( ‘template-portfolio-right-sidebar.php’ ) || is_page_template( ‘template-portfolio-four-col.php’ ) || is_page_template( ‘template-portfolio-left-sidebar.php’ ) || is_page_template( ‘template-portfolio-no-sidebars.php’ ) ) : ?>
var $content = $(‘.entries’);
$content.imagesLoaded(function() {
$content.masonry({
itemSelector : ‘.hentry, #infscr-loading’,
columnWidth : container.querySelector(‘.<?php echo pinboard_teaser_class(); ?>’),
});Any assistance would be appreciated, even if it is a link on a topic to research
- The topic ‘Uncaught ReferenceError: container is not defined’ is closed to new replies.