Grow your CSS skills. Land your dream job.

Problem with JQuery tabs and WordPress

  • # May 15, 2010 at 4:08 am

    Hello,

    I’m a non-english (so sorry for mistakes) noob that is trying to create his first WordPress theme.
    I’m trying to create a featured post slider similar to that one in this Web site.

    I’m following this page.

    In the header.php of my WordPress theme, before <?php wp_head(); ?> I wrote this

    Code:

    and I put the file jquery-1.4.2.min.js in the main directory of the theme.

    In the index.php I wrote this:

    Code:

    In primo piano

    After <?php get_header(); ?> I wrote this code to make the tabs:

    Code:

    The problem is that this doesn’t work at all. What’s wrong?
    Please help me!

    Thank you in advance and bye!

    # May 15, 2010 at 7:46 am

    Your forgot to add document ready.

    Code:
    # May 15, 2010 at 11:09 am

    Thank you, but this doesn’t resolve the problem. Apparently, nothing has changed.

    # May 15, 2010 at 1:37 pm

    Try this.

    Code:

    If red borders appear around every div, then you know jquery is loading, if it isn’t make sure it is loaded properly.
    If red borders appear around everything (jQuery has loaded properly) then make sure your tabs.plugin is loading properly. Check file path, etc.

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".