Targeting single page with JS
Here, the code operates on anything that matches the #searchButton element: jQuery(“#searchButton”) If there is a searchButton on other pages, it will match it, soo you need to be more specific. For example, on the homepage, the <body> tag will have the home class, here is my sites homepage body tag: <body class=”home blog logged-in … Read more