cmdln Posted July 10, 2015 Share Posted July 10, 2015 Using G Burtons responsive oscommerce my logo was noticeably furry on smaller screens. Maybe the logo was furry to start but its just more noticeable on a small screen. Anyhow I decided an SVG logo may be a better way to go. I modified /admin/store_logo.php to allow uploading SVG by changing the following line. $store_logo->set_extensions(array('png', 'gif', 'jpg','svg')); However I believe this may be an issue for older browsers and want to do something like this <img src="logo.svg" onerror="this.onerror=null; this.src='alternative_logo.png'"> How can I modifying store_logo.php to upload an alternative image for older browsers? Link to comment Share on other sites More sharing options...
burt Posted July 10, 2015 Share Posted July 10, 2015 Dont worry about an alternative for older browsers. http://caniuse.com/#feat=svg Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.