Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 996791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:56:04+00:00 2026-05-16T06:56:04+00:00

I’m developing a WordPress 3.0 theme, my first theme with a bit of jQuery

  • 0

I’m developing a WordPress 3.0 theme, my first theme with a bit of jQuery enhancement. I’m trying to fade out and fade in the pagination on each posts area. The idea is that when a user click the “prev” or “next” arrows, the listed posts will fade out, the next page of posts will load and then fade in.

The fadeouts work fine, but the new content doesn’t fade in, it just pops in with no fade. It looks OK, but it’s not doing what I want and I can’t sort out why.

Here are the two places it’s working now on the dev environment (I haven’t really cross browser tested yet outside of FF 3.5, FF 3.6 and Chrome, so if you’re on IE it may not work as expected):

http://kendraschaefer.com/mandapop/gallery/
http://kendraschaefer.com/mandapop/blog/

And here’s the corresponding jQuery:

$(document).ready(function(){
    $('#postPagination a').live('click', function(e){
        $('#blogListColWrapper, #galleryListColWrapper').fadeOut(200).load(link + ' #blogListCol', function(){ 
        $('#blogListColWrapper, #galleryListColWrapper').fadeIn(300); 
        Cufon.refresh(); });
    });

});

I’ve tried everything I can think of. Any ideas would be much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T06:56:05+00:00Added an answer on May 16, 2026 at 6:56 am

    The instant fade-in is because the link is doing it’s default behavior…loading a new page, watch your URL to see it change 🙂

    I think overall what you’re looking for is something like this:

    $('#postPagination a').live('click', function(e){
      var link = this.href;
      $('#blogListColWrapper, #galleryListColWrapper').fadeOut(200).each(function() {
        $(this).load(link + ' #' + this.id, function(){ 
          $(this).fadeIn(300); 
          Cufon.refresh(); 
        });
      });
      e.preventDefault();
    });
    

    This has a few changes, first the e.preventDefault() to prevent the link from actually going to the page. After that link was undefined, you need to pull the href attribute from the link you’re clicking. There are a couple of ways to go about the #id part of the .load() you’re doing, I just did a simple .each() here, where this refers to the div that’s actually loading so you can grab the id property.


    Here’s an alternative way without the each, but it’ll break more easily if both #blogLostColWrapper and #galleryListColWrapper are in the page…hopefully that’s not the case:

    $('#postPagination a').die().live('click', function(e) {
      $('#blogListColWrapper,#galleryListColWrapper').fadeOut(200)
        .load(this.href + ' #blogListColWrapper,#galleryListColWrapper', function() {
          $(this).fadeIn(300); 
          Cufon.refresh(); 
        });
      e.preventDefault();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.