Title: Uncaught ReferenceError: container is not defined
Last modified: August 31, 2016

---

# Uncaught ReferenceError: container is not defined

 *  [jsheedy](https://wordpress.org/support/users/jsheedy/)
 * (@jsheedy)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/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:
    [http://www.marseillesrecboard.org/iasc/events/](http://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.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/pinboard/1.1.12/screenshot.png)
 * Pinboard
 * [Support Threads](https://wordpress.org/support/theme/pinboard/)
 * [Active Topics](https://wordpress.org/support/theme/pinboard/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/pinboard/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/pinboard/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jsheedy](https://wordpress.org/support/users/jsheedy/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-container-is-not-defined/)
 * Status: not resolved