javascript - I'm getting "Uncaught SyntaxError: Unexpected token <" but I can't find the issue -
i receiving error:
uncaught syntaxerror: unexpected token <
which in turn causing error:
uncaught referenceerror: nfforms not defined @ n.initialize (front-end.js:1) @ n.s.object (front-end-deps.js:20) @ new n (backbone.min.js:1) @ n.initialize (front-end.js:2) @ n.s.object (front-end-deps.js:20) @ new n (backbone.min.js:1) @ n.initialize (front-end.js:3) @ n.s.object (front-end-deps.js:20) @ n.constructor (front-end-deps.js:21) @ new n (backbone.min.js:1)
but cannot find "<" causing issue. created own landing page template plug in called inbound pro on wordpress. have checked code, source code, , file says issue on cannot find "<" causing problem. crazy or bigger issue @ play here?
https://idsource.com/go/general-quote-page/
**edit - further info: forgot mention main issue having because of error form in blue section won't load. i'm using ninja forms plugin forms , 1 of errors above states "nfforms not defined".
**edit - html page:
<?php /* landing page boiler plate */ $key = lp_get_parent_directory(dirname(__file__)); $path = landingpages_uploads_urlpath ."$key/"; $url = plugins_url(); /* define landing pages's custom pre-load hook 3rd party plugin integration */ do_action('lp_init'); /* load $post data , start normal wordpress loop */ if (have_posts()) : while (have_posts()) : the_post(); $id = get_the_id(); $title = get_the_title($id); $content = lp_get_value($post, $key, 'main-content'); $conversion_area = lp_get_value($post, $key, 'conversion-area-content'); $sharetext = lp_get_value($post, $key, 'sharetext' ); $share_link = lp_get_value($post, $key, 'shareurl' ); ?> <!doctype html> <html lang="en"> <head> <title><?php wp_title(); ?></title> <meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width"> <?php wp_head(); // load regular wp head do_action('lp_head'); // load custom landing page specific header items ?> <link rel="stylesheet" href="<?php echo $path;?>lp.css" type="text/css"> <?php if ($share_link != ""){ $share_link = $share_link; } else { $share_link = get_permalink( $id ); } ?> </head> <body> <header> <div class="page_center large"> <?php $logo = get_field('logo'); if( !empty($logo) ): ?> <img src="<?php echo $logo['url']; ?>" alt="<?php echo $logo['alt']; ?>"> <?php endif; ?> </div> </header> <section class="lp_banner"> <div class="page_center large"> <?php the_field('banner_content'); ?> </div> <div class="page_center large thirds"> <?php // check if repeater field has rows of data if( have_rows('banner_repeater') ): // loop through rows of data while ( have_rows('banner_repeater') ) : the_row(); ?> <div class="third"> <?php $image = get_sub_field('repeater_image'); if( !empty($image) ): ?> <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>"> <?php endif; ?> <span><?php the_sub_field('repeater_text'); ?></span> </div> <?php endwhile; else : // no rows found endif; ?> </div> </section> <section class="lp_form"> <div class="page_center"> <?php the_field('quote_section_content'); ?> <div class="form_wrap"> <?php the_field('quote_section_form'); ?> </div> </div> </section> <section class="designer"> <div class="page_center large"> <div class="left"> <?php the_field('designer_section_text'); ?> </div> <div class="right"> <div class="page_center"> <?php $desimage = get_field('designer_section_image'); if( !empty($desimage) ): ?> <img src="<?php echo $desimage['url']; ?>" alt="<?php echo $desimage['alt']; ?>"> <?php endif; ?> </div> </div> </div> </section> <?php break; endwhile; endif; // end wordpress loop ?> <footer> <?php do_action('wp_footer'); do_action('lp_footer'); ?> </footer> </body> </html>
Comments
Post a Comment