When my home page loads in my browser, the page jumps to an HTML embed farther down the page from the top. I obviously want my home page to load at the top.
Most of the people who have had the same problem of a page jumping cite an autofocus feature turned on within a form. My page is not jumping to a form, it’s jumping to a Div Block with a 1) heading, 2) code embed, and 3) paragraph. It’s not even jumping to the first Div Block in my Container, it is jumping to the 2nd one.
Checking all the text fields in the form in the footer at the bottom of my page. Autofocus was turned off on all of them.
Checking the HMTL embed code for anything suspicious that might redirect the page there, such as an anchor or other code. Did not see anything suspicious. The code is here. ()
Deleting the Code Embed element in the Div Block. This caused the page to load at the top.
Adding the Code Embed element back to the Div Block. This caused the page to resume jumping down to the HTML embed.
Substituting the HTML Embed code with the embed code from a YouTube element. The page loaded at the top.
Does anyone have any advice on how to fix my page continuing to load at the point of an HTML embed?
The problem appears to be inside of the content player itself. Check the settings and documentation for the player you’re using to see if it has some kind of scroll-into-view setting switched on.
I am guessing this is something to do with internal linking or having some href pointing to the page itself etc. If you can find the relevant setting or JS in the static page that you have embedded, you can get rid of it.
If you are not able to find it, as a workaround, you can probably try this out:
Thank you to all who posted. I’m impressed by how much support I received when I needed it.
I changed the iframe embed code as AJ_Dev suggested. Then, I inserted a block of code (the script) that AJ_Dev provided into an embed code before the iframe embed code. I no longer see the embedded iframe in Webflow, but when I published the modified page it now works on the live website.
When I reload the page on the live website it leaps to the top instead of down to the embedded module. My embedded module also appears and seems to be functioning normally.