Give help. Get help.

  • # November 19, 2009 at 2:03 pm

    Hello All,

    I am trying to get this script to work on a particular page in my wordpress theme.The first jquery script works on the homepage properly but the second script does not work on the portfolio page & nothing happens.

    I have combined the scripts, separated them, used the default $() initializer but nothing seems to work for the second script.

    Jquery setup:


    Below is the layout code the script is suppose to animate. The script is suppose to fade out the IMG and reveal the text underneath which is all positioned with css.



    < ?php if($preview !== ''){ ?>

    < ?php the_title(); ?>

    < ?php the_excerpt(); ?>

    < ?php }; ?>

    Here is an example of what it is suppose to achieve except instead of sliding the Image will fade out.HERE.PLEASE HELP…THX

# November 19, 2009 at 10:08 pm

well i don’t know a lot about jquery, but one thing I do when the code isn’t working is use an alert box to find out if my code is working or not.


alert("it’s working");

throw that into your second script then load the page, if you see the alert box pop up then you know it’s reading the script, if not, then you know where the problem is.

# November 20, 2009 at 7:45 am

Or, if you want to do things more sophisticated, you can ad lots of

console.log(“Message here.”+variable);

to your code to debug it line by line using the Firebug plugin (console view) in Firefox.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.