Need to add a mouse over virtumart categories image

  • Answered

please help need to make the image change or highlight on mouse over category image ?
Hello, Thank you for your question on adding a mouseover image to your VirtueMart. This is not a normal setting within VirtueMart so you would need to learn how to change the template code to do this. This is not recommended as any updates to the core code could overwrite your changes. Still, if you wish to do so, you will first need to locate the template file that contains the image header. Then you would need to change that code to look something like this: <a href="URL ADDRESS"><img src="URL OF THE PRIMARY IMAGE" onmouseover="this.src='URL OF THE MOUSEOVER IMAGE'" onmouseout="this.src='URL OF THE PRIMARY IMAGE'" /></a> Of course the base code may need to be done a bit differently with formatting and variables since it is written in PHP and not the standard HTML as shown above. Still, the output would look like that once it is interpreted by the PHP processor, which is what you ultimately want. Kindest Regards, Scott M