Home › Forums › WoodMart support forum › Displaying Downloadable Link in “Attributes” Section
Displaying Downloadable Link in “Attributes” Section
- This topic has 13 replies, 2 voices, and was last updated 1 year, 2 months ago by Hung Pham.
-
AuthorPosts
-
September 26, 2023 at 12:42 pm #499319
madsParticipantI am experiencing an issue with adding a downloadable link to the “Attributes” section on a product page.
Although I can add a raw URL, which becomes clickable, it doesn’t look professional. I attempted to use HTML to make the text more user-friendly (Download), but it displayed the raw HTML instead.
Could you please advise on how to incorporate a clean, clickable, downloadable link within the “Attributes” section, without displaying the clumsy-looking raw URL?
Thank you in advance.
- This topic was modified 1 year, 2 months ago by mads.
September 26, 2023 at 2:43 pm #499363
Hung PhamKeymasterHi mads,
Thanks for reaching to us.
Please provide me with temporary wp-admin access to debug issues.
Regards,
- This reply was modified 1 year, 2 months ago by Hung Pham.
September 27, 2023 at 9:49 am #499530
madsParticipantHey Hung,
Can you please provide me your e-mail then?
September 27, 2023 at 12:49 pm #499595
Hung PhamKeymasterHi mads,
Any email address can be used for the new account, it does not have to be your personal email.
Thanks for your patience.
Regards,
September 28, 2023 at 11:02 am #499869
madsParticipantYou asked me to “Please provide me with temporary wp-admin access to debug issues.”
To do that, I will need your e-mail.
September 28, 2023 at 5:51 pm #500036
Hung PhamKeymasterSeptember 30, 2023 at 11:00 am #500403
madsParticipantI just sent you an invite.
October 1, 2023 at 5:08 pm #500585
Hung PhamKeymasterHi mads,
First of all, take my apologies for delay in answering.
We checked and did not receive any email. Please provide wp-admin credentials directly here.
Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.
Regards,
October 2, 2023 at 11:57 am #500762
madsParticipantCheck below.
October 2, 2023 at 4:52 pm #500915
Hung PhamKeymasterHi mads,
Thanks for the details.
However, I see you changed the product content with link provided. Please replicate the issue then I can see and debug it.
Regards,
October 3, 2023 at 11:41 am #501058
madsParticipantHello. I’ve just added it in the product mentioned (see below). I’ve added two:
1. First one is where I created the Attribute & Term and added in this link: Download
2. Number Two is where I haven’t created Attribute & Term and added the link on the product.October 3, 2023 at 5:17 pm #501241
Hung PhamKeymasterHi mads,
Please add below Custom Code to functions.php file in Child theme.
add_action( 'woocommerce_attribute', function ( $value, $attribute, $values ) { if ( $attribute && ! $attribute->is_taxonomy() && $attribute->get_options() ) { return wpautop( wptexturize( implode( ', ', $attribute->get_options() ) ) ); } return $value; }, 10, 3);
Let me know how it goes.
Regards,
October 9, 2023 at 6:38 am #502594
madsParticipantWorks great. Thanks.
October 9, 2023 at 6:46 am #502596
Hung PhamKeymasterHi mads,
Glad to hear your issue has been resolved. Keep us in mind for future questions and concerns, we’re always here to help!
If you have a quick minute we always appreciate a 5-star rating for our theme and customer and technical support.
https://themeforest.net/item/woodmart-woocommerce-wordpress-theme/reviews/20264492
Your feedback is the motivation to improve our work and services.
Regards,
-
AuthorPosts
Tagged: Attributes
- You must be logged in to create new topics. Login / Register