Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SVG Logo


cmdln

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...