Streaming live at 10am (PST)

I've got two things


#1

Two separate questions/issues.

  1. I want to make pulldown menus disappear automatically when a selection is made. I just plain don’t know how to make this happen.

  2. When reloading, the page goes to some spot way down the page. I want it to go to the top of the page automatically. I have tried entering javascript in custom code:

window.onbeforeunload = function () {
window.scrollTo(0, 0);
}

jquery:
(document).ready(function(){ (this).scrollTop(0);
});

and that having failed, I tried going to anchor, the anchor being at the topof the page:

<script type=“text/javascript”>

<!–

window.onload=function(){anch=window.location.hash;window.location.hash=anch;}

//–>

</script>

No success at al. It just keeps going where it wants.

Any ideas?

Thanks in advance.


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

my read only share link:

https://preview.webflow.com/preview/sams-ultra-awesome-project-e18e4f?utm_source=sams-ultra-awesome-project-e18e4f&preview=a0810f346e64a762c72ee7874ac8ef84


#2

Hi @samjordan,

Regarding the 1st point (Pulldown menus disappear), you may need to create a custom pull-down menu with specific interactions to do what you want it to do. The default drop-down list component that you have used does not have the settings to make the changes you want to achieve.

Here is the link to the Webflow University video showing you how to create the custom drop-down.


You may be particularly interested in the interactions that start around the 4min 30secs.

Hope that helps
Keiran


#3

Hi Keiran,

Yeah, I kind of thought that would be the answer. Thanks.

Sam