Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript $(“.current_page_item a”).position().left not working

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30163
    MollocH
    Member

    Hey,

    I’m just fucked off at the moment :) Passed the last 2 hours to find where the problem is.

    The page: http://test.redaccent.net/

    As you can see, at the beginning there are 14 px padding on the left. These disappear when hovering… but returns on mouse out.

    it seems that the $(“.current_page_item a”).position().left isn’t working cause when you change the menu, the css class “current_page_item” is set correctly, but nur “recognized” by jquery.

    The strange thing is I have a Demo page: http://test.redaccent.net/mueze/

    There, everythings fine. Now I changed the site to a WP template … and I have what I described above.

    I checked the jquery file, the javascript file, the css file … everything identicaly.

    So where the hell is the error ?

    Thanks for help :)

    Greetings

    #80449
    rickylamerz
    Member

    maybe it has something to do with jquery not running. Have you checked if any jquery code executes?

    #80447
    MollocH
    Member

    have you checked the website ?

    If so, you would have seen that jquery is working fine.

    #80383
    Luminated
    Member

    My first thoughts is there is a property being inherited by some upstream CSS stylesheet that WP uses. I noticed you are not using a full on CSS reset. Have you tried that?

    http://meyerweb.com/eric/tools/css/reset/

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.