I am trying to update my Google Search box code but even when I choose “my site only” and enter my url with the * it doesn’t work. When I try it out in my website, I get results for the web and not my site. Is there any way to fix this like with the old code that you could just search your site??
There is some standard code you can add to your site to create a Google search form. You just need to replace the domain with your own site’s domain (see in red):