WordPress.org

Ready to get started?Download WordPress

Forums

Sticky Element
[resolved] Tried different Id and classes with no luck. (14 posts)

  1. hiredad101
    Member
    Posted 11 months ago #

    Great plugin I have seen it in action,the demo and read the txt. file

    I seem to be missing something. I inspected the header element that im trying to fix and tried different Id's, and classes with no luck.

    http://hiredad.com

    http://wordpress.org/plugins/sticky-element/

  2. Youdaman
    Member
    Plugin Author

    Posted 10 months ago #

    I had a look at your site and in the console it said:

    "#masthead" element not found, please check Sticky Element plugin settings

    So I think you want to change that to #header and it should work.

  3. hiredad101
    Member
    Posted 10 months ago #

    I had the splash screen on while working on the site.

    I did however try #header with no luck. FF developer console has the element as:
    header#masthead.siteheader and the same in Firebug.
    How can I get this to work?

  4. Youdaman
    Member
    Plugin Author

    Posted 10 months ago #

    Can you please link me to a page that is using it so I can take a look?

  5. hiredad101
    Member
    Posted 10 months ago #

  6. Youdaman
    Member
    Plugin Author

    Posted 10 months ago #

    I just had a look and it seems you've got it working now, assuming you wanted the top nave to stay in place, let me know if you're ok :)

  7. hiredad101
    Member
    Posted 10 months ago #

    Its not working when I look at it. If I scroll the page the header does not stay at the top while everything else moves.

    I refreshed the page and cleared my browser still no luck.

    However you say it works when you look at it?

  8. Youdaman
    Member
    Plugin Author

    Posted 10 months ago #

    Here's a screenshot of what I see in Chrome at 1280x800 window size after scrolling down: https://dl.dropboxusercontent.com/u/17597312/HireDad.com%20-%20American%20SAHD%20Freelancers.png

    i.e. the nav sticks to the top (and is pushed up when the footer hits).

    What browser are you using? Is JavaScript turned on?

  9. hiredad101
    Member
    Posted 10 months ago #

    Great questions.
    I am using FF 24.0 and I browser searched "about:config" "javascript.enabled" right click toggle on.

    Still FF will not work. However it does work in Chrome! :)

    I also checked it on my mobile browsers (Chrome, FF, Dolphin,) and default for Android 4.1.2. with no luck.

    Is there a premium version of your plugin?

    Thanks again Youdaman great plugin

  10. Youdaman
    Member
    Plugin Author

    Posted 10 months ago #

    Well it doesn't seem to be working on either now -- possibly because you have a JavaScript error with another script:

    Uncaught Error: You must specify a valid JavaScript API Domain as part of this key's configuration.

  11. hiredad101
    Member
    Posted 10 months ago #

    So I deleted the last plugin to get it back in Chrome.

    Now I just have to figure what plugin is stopping it in FF.

    Any suggestions?

  12. Youdaman
    Member
    Plugin Author

    Posted 10 months ago #

    Well that's annoying -- seems there is a bug in Firefox.

    It _should_ work. The CSS tells that element to have position:fixed and sets top:0 and also the width... so the solution would be to find out why Firefox doesn't work while the other browsers do.

    My guess is there is an extra step I need to add with the CSS, like for the parent element or something like that.

    I'll try to work it out but I'm sorry if I can't come up with something.

  13. Youdaman
    Member
    Plugin Author

    Posted 10 months ago #

    I looked at my own site in Firefox and it seems to work fine:

    http://sticky-element.com/

    So my only guess with your site is that the structure of the HTML/CSS doesn't play well with my plugin. Possibly due to other JS on the page that manipulates things like the big photo/slider thing, or not, I'm not sure.

    Again I'll try to see if I can work out the problem, but apologies if I cannot.

  14. Youdaman
    Member
    Plugin Author

    Posted 9 months ago #

    I'm guessing things worked out but if not feel free to open another support issue :)

Reply

You must log in to post.

About this Plugin

About this Topic