Support » Plugin: WooCommerce » How can I add a link as a product attribute?

  • I thought this would be simple to do, but it doesn’t appear so. I need to be able to add links to PDFs in the “additional information” tab, but when I put a link in the “value” field all that happens is it renders the link as text and not a link.

    I’m sure something in the function is doing this, but I have no idea where it is or what to modify so this is allowed. Help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I don’t think attributes are set up to handle code like that.

    Why don’t you create a new tab for Additional Information that contains links in the traditional sense, rather than trying to get attributes to work for you?

    This should help

    Use it to create a custom tab, call it Additional Information and then you can add as much HTML to the tab as you like.

    Thank you so much for this. I didn’t see that this was available, but it looks like it will do what I need.

    Yep this does indeed work. The only problem I see with it is that whatever I put in for the tab title, it repeats it in the body of the tab as an h2 element. I guess I could just hide that with CSS, but it would be nice to be able to turn that off.

    Actually, there might be a way to do this in the plugin files itself…

    Since attributes have links, such as .com/color/red/ it would be a cool feature that in the Additional Information Tab, the attributes listed, would simply be linked to the attributes already available link.. it seems like its just a matter of converting the words in to links.. not sure how much new code that would be, but it would let customers filter from that area of the page to say…. see the other Reds..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I add a link as a product attribute?’ is closed to new replies.