P tags within breakpoints script
-
looks like something is causing the breakpoints script tag to have P tags all over it:
<p><script class="tribe-events-breakpoints"> ( function () { var completed = false;</p> <p> function initBreakpoints() { if ( completed ) { // This was fired already and completed no need to attach to the event listener. document.removeEventListener( 'DOMContentLoaded', initBreakpoints ); return; }</p> <p> if ( 'undefined' === typeof window.tribe ) { return; }</p> <p> if ( 'undefined' === typeof window.tribe.events ) { return; }</p> <p> if ( 'undefined' === typeof window.tribe.events.views ) { return; }</p> <p> if ( 'undefined' === typeof window.tribe.events.views.breakpoints ) { return; }</p> <p> if ( 'function' !== typeof (window.tribe.events.views.breakpoints.setup) ) { return; }</p> <p> var container = document.querySelectorAll( '[data-view-breakpoint-pointer="9f07ed76-9e09-4821-a7b8-cfcbe7c96662"]' ); if ( ! container ) { return; }</p> <p> window.tribe.events.views.breakpoints.setup( container ); completed = true; // This was fired already and completed no need to attach to the event listener. document.removeEventListener( 'DOMContentLoaded', initBreakpoints ); }</p> <p> // Try to init the breakpoints right away. initBreakpoints(); document.addEventListener( 'DOMContentLoaded', initBreakpoints ); })(); </script></p>
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘P tags within breakpoints script’ is closed to new replies.