www.webdeveloper.com
Results 1 to 3 of 3

Thread: jquery and wordpress

  1. #1
    Join Date
    Oct 2009
    Location
    Lawrence, KS
    Posts
    52

    jquery and wordpress

    I'm trying to implement the jquery Gallerific plugin into a wordpress site, but cannot get the javascripts to load.

    Here's my code from header.php

    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('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
        
    <?php wp_head(); ?>
    
    		<link rel="stylesheet" href="<?php echo bloginfo('stylesheet_directory') ?>/css/basic.css" type="text/css" />
    		<link rel="stylesheet" href="<?php echo bloginfo('stylesheet_directory') ?>/css/galleriffic-2.css" type="text/css" />
    		<script type="text/javascript" src="<?php echo bloginfo('stylesheet_directory') ?>/js/jquery-1.3.2.js"></script>
    		<script type="text/javascript" src="<?php echo bloginfo('stylesheet_directory') ?>/js/jquery.galleriffic.js"></script>
    		<script type="text/javascript" src="<?php echo bloginfo('stylesheet_directory') ?>/js/jquery.opacityrollover.js"></script>
    		<!-- We only want the thunbnails to display when javascript is disabled -->
    		<script type="text/javascript">
    			document.write('<style>.noscript { display: none; }</style>');
    		</script>
    
    </head>

  2. #2
    Join Date
    Mar 2007
    Posts
    946
    I would suggest posting a link so that we can see if the files are in the right location. Also, doesn't wordpress have a support site? I am not try to drive you away from the site, but if they have a support site then I would think they would have members familiar with the software.
    "Hippies.They're everywhere. They wanna save the earth, but all they do is smoke pot and smell bad."-Cartman

  3. #3
    Join Date
    Oct 2009
    Location
    Lawrence, KS
    Posts
    52
    I have done extensive research into this and haven't found the cause anywhere on the official wordpress site, I'm just posting around to see if I can come up with an answer.

    The files are all in the right place, I've double checked by using the browser;s "view source" and downloading the linked javascript files. They are all correct. It has something to do with the way wordpress handles javascript.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles