• Resolved jack01732

    (@jack01732)


    Hi,

    Hoping someone can help me, for some reason when ever i click the svg rather than directing to the page i want to, it brings up some sort of light box.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Benbodhi

    (@benbodhi)

    Hey there,

    I assume you mean the delivery button… Is there a reason why you used an SVG for that instead of just making a proper button? WooCommerce is likely calling the lightbox to display it based on some class or something to do with the fact that it is an image. It seems to be displaying it like the product images.

    I would use a proper button and style it with CSS.

    Let me know if I misunderstood. The more info you can provide, the better I can try to help.

    Thread Starter jack01732

    (@jack01732)

    Yes that is correct, i wanted to make a custom button which was resposnive while the Or in the image non responsive. When i add the image to a post or page in my site which is not woo commerce it still has the same effect. Is there a way you know where i can disable the light box for that particular image?

    How would i go about making a proper button?

    Kind regards,

    Jack

    Thread Starter jack01732

    (@jack01732)

    actually dont worry about it, ive fixed the solution by using mapping and changing the class

    Plugin Author Benbodhi

    (@benbodhi)

    Glad you got it sorted ??

    But to make a normal button, you would just use some simple HTML/CSS for example:

    <span class="your-or">- or -</span>
    <a class="your-delivery-button" href="#"><span class="your-icon"></span>Setup a repeat delivery</a>
    
    .your-or {}
    .your-delivery-button {}
    .your-icon {}
    

    Then just set the font sizes, colors, background, padding and everything in that CSS. But sounds like you’ve got a solution for now ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘SVG Hyperlink not working?’ is closed to new replies.