here’s a page example Bought — 16 Shandara Cres — $1.599 MILLION where I want to hide 2 elements in the footer - “Ramin Khaze The Difference.” and “Schedule showing”, when url contains a certain parameter, for example “?mls”
I’ve found a similar topic here but I must be doing something wrong (I’m a beginner in coding) because nothing’s working for me.
Does anybody know a way to do it in Webflow? I will apreciate any help and a piece of advice! Thanks in advance!
I think the script in your collections page is using jQuery. If you haven’t already, you’ll need to add jQuery to your page. (Maybe you’ve added it already, but I didn’t see it.) This page has some options:
If that doesn’t work, an alternative might be to do this without jQuery. Something like:
// find the element
let goBackButton = document.getElementById("goBackButton");
// add the click event
goBackButton.addEventListener("click", function() {
window.history.back();
});
(For this to work, you’ll need to give your go back button an ID. Click the div block, go into its settings, and add an ID of goBackButton.)