My goal is to show a different image to users on mobile devices using only CSS, as I am unable to access the HTML code. On mobile, I used display:none for the header-logo-image img { and then added a background-url to the div to successfully display my alternative logo. The issue arises when I switch to the background image in the div because I lose the link to the homepage that my other img provided.
Is there a workaround to ensure that the background image can be linked? Would CSS image sprites work if applied to the img instead?
<div id="header-logo-image">
<a href="http://example.com/folder/">
<img src="http://example.com/folder/wp-content/uploads/2016/01/head-logo.png">