WordPress.org

Support

Support » Plugins and Hacks » WooCommerce Dynamic Gallery » [Resolved] Add span around main image

[Resolved] Add span around main image

  • Hey. I am wanting to implement some custom code in to this plugin. In order to do this i need to locate where this bit of code is generated. I have looked everywhere but it isn’t clear:

    <div class="ad-image" style="width: Xpx; height: Xpx; top: 0px; left: 0px;"><img src="http://www.x.com/X.jpg" rel="x" class="lightbox" alt="" idx="0" style="width: Xpx; height: Xpx;"></div>

    All i need to do it add a span around the img tag so it looks like this:

    <div class="ad-image" style="width: Xpx; height: Xpx; top: 0px; left: 0px;"><span><img src="http://www.x.com/X.jpg" rel="x" class="lightbox" alt="" idx="0" style="width: Xpx; height: Xpx;"></span></div>

    Can you give me any clue how i might do this.

    Thank you

    http://wordpress.org/extend/plugins/woocommerce-dynamic-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I would really appreciate any help you can offer Steve

    Plugin Author Steve Truman

    @a3rev

    @chocula,

    Are you sure you want to add custom code to the plugin? – you know your code will be over-written and lost each time we update … over the last six months there have been 8 updates. I think you just might grow a bit weary of having to update, add your code back and test if it still works.

    Also WooCommerce v2.0 is due out shortly and there may well be code updates required depending on how v2.0 finishes up after the beta test and launch.

    We have another feature update due out in a few weeks, after the WooCommerce v2.0 is out.

    hi steve thanks for your reply,

    the amount of code that i want to add is minimal and i can easily migrate this change to new versions or if it is in the updates then i can just overwrite it. Unfortunately i can’t wait a couple of months though : (. please would you just be able to tell me where to change this?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Add span around main image’ is closed to new replies.
Skip to toolbar