Home Forums Total Weird 284px padding

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #56442
    danvendel
    Participant

    Hi

    Using Total 2.1.70 – Aug 04, 2024 at https://zackox.com.

    Have tweaked the theme a bit. But strange thing is happening. Have set div ht-header to be fixed which it is. I’ve placed my own image below and it aligns fine with the header.

    But when I start scrolling down, the div # ht-content and class ht-site-content gets an inline css saying “padding-top: 284px” and accordingly, the image “jumps” down 284px.

    Have search through all Total files for the source of the insertion of the inline css, but failed. Even searched the database. Eventually, I’ll have to search all wordpress files too, but thought I’d ask for help here first.

    Oh, it’s when viewing on desktop. If it’s the same on mobiles, I haven’t checked.

    Any asuggestion appreciated.

    Oh (again), if login is needed, let me know.

    Cheers,
    Dan

    #56444
    danvendel
    Participant

    Forgot to add: on Mac, tested in Firefox and Chrome.

    Dan

    #56445
    danvendel
    Participant

    Have now forced the top-padding to “0” which works when starting to scroll. But since the image is vertically aligned to the top bar (with logo and nav) when first opening the page, it “jumps” ca 30px up under the header when starting to scroll.

    Have tried force e.g. 25px top-padding, but no go with that.

    Now it’s not perfect, but better than with that 284px padding.

    Cheers,
    Dan

    #56489
    Hash
    Keymaster

    Hi,

    I see that the plugin Smush is causing the issue. Please disable it and check.

    May be there is some settings in the plugin that need to be done.

    Thanks

    #56490
    danvendel
    Participant

    Excellent!

    I inactivated Smush and deleted the “padding-top:0” in the css for the container, That fixed it. Thanks a bunch!

    But now I will have to figure out how on earth you could find that out…. 🙂

    Cheers,
    Dan

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.