Give me feedback

Help me fix this code

Code has errors and I do not know how to fix it please help

untitled.php
<!DOCTYPE html> <!-- Site developed/designed by Bi Yoo - biyootiful.com --> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="<?php echo ''.get_stylesheet_directory_uri().'/favicon.ico';?>" /> <!-- Pardot tracker --> <script type="text/javascript"> piAId = '67842'; piCId = '1540'; (function() { function async_load(){ var s = document.createElement('script'); s.type = 'text/javascript'; s.src = ('https:' == document.location.protocol ? 'https://pi' : 'http://cdn') + '.pardot.com/pd.js'; var c = document.getElementsByTagName('script')[0]; c.parentNode.insertBefore(s, c); } if(window.attachEvent) { window.attachEvent('onload', async_load); } else { window.addEventListener('load', async_load, false); } })(); </script> <!-- End Pardot tracker --> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-WC5FXC');</script> <!-- End Google Tag Manager --> <?php wp_head(); ?> <?php $ie6 = (ereg("MSIE 6", $_SERVER["HTTP_USER_AGENT"])) ? true : false; $ie7 = (ereg("MSIE 7", $_SERVER["HTTP_USER_AGENT"])) ? true : false; $ie8 = (ereg("MSIE 8", $_SERVER["HTTP_USER_AGENT"])) ? true : false; $ie9 = (ereg("MSIE 9", $_SERVER["HTTP_USER_AGENT"])) ? true : false; if ($ie6 || $ie7 || $ie8 || $ie9) {?> <style type="text/css"> .integrations select{padding-right:15px;background:#fff;} </style> <?php }?> </head> <body id="page-top" <?php body_class(); ?>> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WC5FXC" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <div class="brivo-outer pushform-push"> <header class="banner navbar navbar-default navbar-fixed-top scrolled-top" role="banner"> <div class="container brivo-container"> <div class="row"> <div> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="<?php echo home_url(); ?>/"style="margin-left: 0px;"><span class="sr-only"><?php bloginfo('name'); ?></span></a> </div> <nav class="collapse navbar-collapse" role="navigation"> <?php if ( is_tag() ) { $backup = $wp_query; $wp_query = NULL; $wp_query = new WP_Query(array('post_type' => 'post')); } if (has_nav_menu('primary')) : wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'nav navbar-nav')); endif; if ( is_tag() ) { $wp_query = $backup; } ?> <div class="login-wrapper navbar-item"> <a id="cta1" class="link-login slide" style="font-weight:700">CONTACT US&nbsp;&nbsp;&nbsp;&nbsp;</a> <a href="https://acs.brivo.com/login/Login.do" target="_blank" class="link-login">LOGIN&nbsp;&nbsp;</a> <button type="button" class="btn btn-success btn-sm learnMore5"><a class="slide" id="form5" style="color:#fff">Request Demo</a></button> </div> </nav> </div> </div> </div> </header>

Reactions 1 reactions

md2perpe Per Persson commented on this code
-1
Could you explain your errors some more? Is it errors in PHP or in JavaScript? I suppose that it's a page that should be run under Wordpress.

Comment on this code:

Please Login or Register to leave a comment.