WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Dynamic Gallery
[resolved] Add span around main image (4 posts)

  1. chocula
    Member
    Posted 1 year ago #

    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/

  2. chocula
    Member
    Posted 1 year ago #

    I would really appreciate any help you can offer Steve

  3. Steve Truman
    Member
    Plugin Author

    Posted 1 year ago #

    @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.

  4. chocula
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.