JS Error
-
how to fix errors:
pagead2.googlesyndication.com/pagead/js/adsbygoogle.js Failed to load resource: net::ERR_CONNECTION_CLOSED
error page
Viewing 5 replies - 1 through 5 (of 5 total)
-
how to fix error “JS Error”:
Uncaught ReferenceError: breakout_of_frame is not defined
at onload (ldcwood.ir/:795)how to fix “DevTools failed to parse SourceMap: https://ldcwood.ir/wp-content/cache/scripts/forms-api.min.js.map”
The first error doesn’t occur for me. The second one is because you, or your theme’s author, have added
onload="breakout_of_frame()"
to the body tag, but thebreakout_of_frame()
JavaScript function isn’t defined anywhere.The opening body tag is likely inside header.php of your theme.
how to close body tag
my header code
<?php /** * The header for our theme. * * Displays all of the <head> section and everything up till <div id="content"> * * @package Sydney */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <!-- Global Site Tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-105410031-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-105410031-1'); </script> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script> (adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: "ca-pub-3232525101388979", enable_page_level_ads: true }); </script> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="https://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <?php if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) : ?> <?php if ( get_theme_mod('site_favicon') ) : ?> <link rel="shortcut icon" href="<?php echo esc_url(get_theme_mod('site_favicon')); ?>" /> <?php endif; ?> <?php endif; ?> <?php wp_head(); ?> <meta name="msvalidate.01" content="7791D9C1F13C9D493ACB1BAF76FD84DB" /> </head> <body <?php body_class(); ?>> <?php do_action('sydney_before_site'); //Hooked: sydney_preloader() ?> <div id="page" class="hfeed site"> <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'sydney' ); ?></a> <?php do_action('sydney_before_header'); //Hooked: sydney_header_clone() ?> <header id="masthead" class="site-header" > <div class="header-wrap"> <div class="container"> <div class="row"> <div class="col-md-4 col-sm-8 col-xs-12"> <?php if ( get_theme_mod('site_logo') ) : ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a> <?php else : ?> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> <?php endif; ?> </div> <div class="col-md-8 col-sm-4 col-xs-12"> <div class="btn-menu"></div> <nav id="mainnav" class="mainnav" > <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => 'sydney_menu_fallback' ) ); ?> </nav><!-- #site-navigation --> </div> </div> </div> </div> </header><!-- #masthead --> <?php do_action('sydney_after_header'); ?> <div class="sydney-hero-area"> <?php sydney_slider_template(); ?> <div class="header-image"> <?php sydney_header_overlay(); ?> <img class="header-inner" src="<?php header_image(); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" alt="<?php bloginfo('name'); ?>"title="<?php bloginfo('name'); ?>" > </div> <?php sydney_header_video(); ?> <?php do_action('sydney_inside_hero'); ?> </div> <?php do_action('sydney_after_hero'); ?> <div id="content" class="page-wrap"> <div class="container content-wrapper"> <div class="row"> </div> </body>
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘JS Error’ is closed to new replies.