- This topic is empty.
August 6, 2012 at 2:36 am #39220magician11Participant
I have a shopping cart plugin that displays an add-to-cart button. for some items I want to display a different image. the plugin doesn’t allow this. So was thinking how to use CSS to work around this..
Here is an extract of the source code:
I thought of creating a span element called “specialImage” that on wrapped around this form, I could write some CSS to change the src URL to another image. I’m just not sure what the CSS code would be.
Possible?August 6, 2012 at 6:33 am #107365SenffParticipant
You have an example on a page/site we can look at? Without the context it’s kinda difficult to see what you need.August 7, 2012 at 4:22 am #107424magician11Participant
Hi. sure thing.
you’ll see two buttons (that are the same) below the course description. If it helps the buttons are generated by a plugin by using the shortcode:
[wp_cart:blue moon meditation & ritual Fri 31 Aug:price:20:end]
The idea is to make the second button image something else without having to create a PayPal button and hyperlinking it to a manually inserted image. The current plugin covers all of that. So looking for a workaround.
- The forum ‘CSS’ is closed to new topics and replies.