Help with Jquery and Header.php for Wordpress...
Hello,
I've been developing a wordpress photoblog on the
Grace theme.
It has this feature (using jquery cycle plugin)
Create a “Featured” Category
The rotating gallery on the Grace homepage displays only the images that have been assigned to a category called “Featured”. But, rather obviously, before it can do that you need to create the “Featured” category.
To do this:
- Log in to your WordPress Dashboard.
- Click Post to expand the Post Menu then click the Categories link.
- Enter Featured into the Category Name field. It’s not necessary to complete the other fields on the Add Category page but you can if you want.
- Click the Add Category button.
That’s it! Now whenever you assign a photo to the Featured category it will automatically be displayed in the rotating gallery on the home page.
Even though i've done what i'm supposed to do. I still do not get a rotating gallery. i've updated the jquery and jquery cycle files on the header.php page to be up to date but still nothing.
here's the code :
- <!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'); ?> <?php bloginfo('name'); ?></title>
- <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
- <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
- <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
- <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
- <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/scripts/jquery-1.4.2.js"></script>
- <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/scripts/chili-1.7.pack.js"></script>
- <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/scripts/jquery.cycle.all.min.js"></script>
- <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/scripts/jquery.easing.1.2.js"></script>
- <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/scripts/grace-fade.js">
- <?php $theme_options = get_option('Grace'); ?>
- <?php if ( !is_single() ) : ?>
- <?php if (!isset($theme_options["galleryspeed"]) || $theme_options["galleryspeed"] == "default") { $speed = 4000; } else if (!isset($theme_options["galleryspeed"]) || $theme_options["galleryspeed"] == "fast") { $speed = 2000; } else if (!isset($theme_options["galleryspeed"]) || $theme_options["galleryspeed"] == "slow") { $speed = 8000; } ?>
-
- <script type="text/javascript">
-
- $(function() {
- $('#feature').cycle({
- speed: 1000,
- timeout: <?php echo $speed; ?>
- });
- });
-
- </script>
- <?php endif; ?>
- <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
- <?php wp_head(); ?>
- </head>
- <body>
- <div id="header"> <!-- header -->
- <div id="logo">
-
- <a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/header.png" /></a>
-
-
- </div>
- </div>
-
- <!-- header -->
- <div id="page"> <!-- page -->
-
- <div id="content"> <!-- content -->
-
Any obvious reasons why this doesn't work...