Skip to content Skip to sidebar Skip to footer

Loading External Post/content To A Specific Div (jquery, Wordpress)

I've been playing around with the grid-a-licious theme, and found some really cool sites similar to the theme: ex. http://home.visuaal.com/ The question is: any idea on how the pos

Solution 1:

If you know the div that you want to load data into you can use the load function. To show and hide the div you can use one of the various Effects functions.

For example:

$("#your_div").load('/post_url', function() { 
  $(this).slideDown().click(function() { 
    $(this).slideUp();  // hide on any click - you can change the selector to suit your needs.
  });
});

Post a Comment for "Loading External Post/content To A Specific Div (jquery, Wordpress)"