Regarding your second question: please clarify if you want to confirm that the code you’ve provided is a suitable solution, or this code doesn’t work for you and you’re looking for alternatives? Could you please also give the URL of the website in question, if a live version is available at the moment – it is always more efficient if I see the code ;)