timothyleetaylor
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress theme breaks in Firefox with any JS inside <body> tagsFYI:
Fixed on my error. Wasn’t including the JS files via this function:
<?php wp_enqueue_script(); ?>Issue Solved.
Forum: Fixing WordPress
In reply to: WordPress theme breaks in Firefox with any JS inside <body> tagsI notice the error is somehow happening due to the Javascript includes within the header.php template file of my theme.
I’m posting it here for reference in case you see anything I’m missing:
<head profile="https://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <meta name="generator" content="<?php bloginfo('version'); ?>" /> <meta name="robots" content="index,follow,noarchive" /> <meta name="keywords" content="" /> <meta name="description" content="" /> <title><?php bloginfo('name'); ?><?php wp_title(); ?></title> <link rel="credits" href="https://www.oursite.com" type="rel" /> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-1.2.3.pack.js" /> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-easing.1.2.pack.js" /> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-easing-compatibility.1.2.pack.js" /> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/coda-slider.1.1.1.js" /> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.highlight.js" /> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/menu.js" /> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/lavaLamp.js" /> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/contact.js" /> <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" type="image/x-icon" /> <link rel="alternate" type="application/rss+xml" title="RSS feed for <?php bloginfo('name'); ?>" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php if (is_page_template('home.php')): ?> <script src="<?php bloginfo('template_directory'); ?>/js/home.js" type="text/javascript" /> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/home.css" type="text/css" media="screen" /> <?php //echo "Home page"; ?> <?php elseif (is_page_template('about.php')): ?> <script src="<?php bloginfo('template_directory'); ?>/js/about.js" type="text/javascript" /> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/about.css" type="text/css" media="screen" /> <?php //echo "About page"; ?> <?php elseif (is_page_template('services.php')): ?> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/services.js" /> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/services.css" type="text/css" media="screen" /> <?php //echo "Services page"; ?> <?php elseif (is_page_template('work.php')): ?> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/work.js" /> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/work.css" type="text/css" media="screen" /> <?php //echo "Our Work page"; ?> <?php elseif (is_page_template('index.php')): ?> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/blog.js" /> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/blog.css" type="text/css" media="screen" /> <?php //echo "Blog page"; ?> <?php endif; ?>
Any help would be appreciated as I go through and search how WordPress particularly handles JS includes.
Thanks.
Forum: Fixing WordPress
In reply to: WordPress theme breaks in Firefox with any JS inside <body> tagsHi @iridiax,
I have validated my markup and CSS. I still receive a blank page in IE 7, and in Firefox, though Safari is displaying correctly.
Please help!!
Thank you.Forum: Fixing WordPress
In reply to: WordPress theme breaks in Firefox with any JS inside <body> tagsThanks @iridiax,
I’ve done this, and haven’t seen anything crucial yet.
Here’s a specific error in Firefox: “_gat is not defined”.
I get this when including any Google Analytics code, though it only happens in Firefox.I think there are two issues here:
1. Any JS error (I’ll keep looking through validation code and fixing a few errors)
2. Firefox error with Google AnalyticsAny ideas?
(Maybe by finding a fix for #1, I’ll find a fix for #2…)Thank you,
Lee