- This topic has 4 replies, 2 voices, and was last updated 3 months ago by danvendel.
- AuthorPosts
- August 15, 2024 at 4:11 pm #56442danvendelParticipant
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,
DanAugust 15, 2024 at 4:15 pm #56444danvendelParticipantForgot to add: on Mac, tested in Firefox and Chrome.
Dan
August 15, 2024 at 5:06 pm #56445danvendelParticipantHave 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,
DanAugust 16, 2024 at 11:05 pm #56489HashKeymasterHi,
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
August 16, 2024 at 11:56 pm #56490danvendelParticipantExcellent!
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 - AuthorPosts
- You must be logged in to reply to this topic.