Sorry, I forgot you were trying to hide the elements based on the URL parameters. Here is a more complete answer.
- Determine if the URL contains the parameter
This site has a pretty good explanation of how to get the value of a parameter, or check if it exists.
https://www.sitepoint.com/get-url-parameters-with-javascript/
You can also refer to this Webflow forum post.
- Hide the elements
If you give the element an ID of “raminkhaze” using the Webflow interface, you could do the following:
var x = document.getElementById("raminkhaze"); x.style.display = "none";
Putting these together, I imagine something like this would work:
const queryString = window.location.search; console.log(queryString); const urlParams = new URLSearchParams(queryString); if (urlParams.has('mls')) { var x = document.getElementById("raminkhaze"); x.style.display = "none"; }