Home › Forums › WoodMart support forum › Video on category extra description not showing
Video on category extra description not showing
- This topic has 9 replies, 2 voices, and was last updated 4 months, 2 weeks ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
February 21, 2025 at 4:13 pm #639970
ddfParticipantI’m trying to add a video on the Extra description field, via “add media” and “Insert from URL”. The video shows on the editor but won’t show on the category page.
Help?
February 22, 2025 at 10:02 am #640085
Aizaz Imtiaz AwanKeymasterHello,
Maybe you are using Custom WooCommerce Builder layouts, which is part of WooCommerce Builder from WoodMart.
Navigate to Layouts > Edit Product Archive Layout and add an extra description widget in the layout: https://prnt.sc/iOvSdhG4UE9F
Here below are the documentation articles: https://xtemos.com/docs-topic/woodmart-woocommerce-layout-builder/
If you have any questions feel free to contact us.
Best Regards,
February 24, 2025 at 12:40 pm #640412
ddfParticipantHi, I don’t have any layout to edit. I’m just trying to edit the extra description on the category page (see image).
Attachments:
You must be logged in to view attached files.February 24, 2025 at 3:54 pm #640536
Aizaz Imtiaz AwanKeymasterHello,
Sorry to hear about the inconvenience. Kindly, please share your Site WP-ADMIN Login details in the Private Content under the message area field so that we can check this concern on your Site and help you out accordingly.
Best Regards,
February 24, 2025 at 4:51 pm #640565
ddfParticipantOk, see attached.
February 25, 2025 at 10:34 am #640733
Aizaz Imtiaz AwanKeymasterHello,
I have added the video from the media library on your site in the “Niveko” category and it is working fine. Check back on your site and check the issue.
Best Regards,
February 25, 2025 at 11:20 am #640755
ddfParticipantHi, yes it works but the video has been uploaded into the media library. I was trying to use the “Insert from URL” option. Does that mean it’s not possible to use URL to display videos?
February 25, 2025 at 3:13 pm #640871
Aizaz Imtiaz AwanKeymasterHello,
You need to create an HTML block, use the video element and add the video URL, and add it to the extra category description. Then it will work for you.
See Screenshots for clarification: https://ibb.co/fG88P1GK & https://ibb.co/F4fDzvcp
For detailed instructions, please follow this guide:
[HTML Blocks Usage Guide] ( https://xtemos.com/docs-topic/html-blocks-usage/ ).Best Regards.
February 25, 2025 at 5:40 pm #640930
ddfParticipantHi, I understand this is a quick solution for the problem, but doesn’t seem to be THE solution. As you have a possibility to upload a video from URL and assign directly on the category extra description field.
I have more than hundred categories, without this feature working, I will have to create hundreds of html blocks and apply to each different category, as they will have different videos. This is not optimal.
Do you have a patch in the future to fix this? Thx.
February 27, 2025 at 10:14 am #641320
Aizaz Imtiaz AwanKeymasterHello,
Please add the code in the functions.php file in your child theme add the video from the URL and check the issue.
function woodmart_get_extra_description_category() { $item = get_queried_object(); $content = ''; if ( ! isset( $item->term_id ) || is_search() || ! in_array( absint( get_query_var( 'paged' ) ), array( 0, 1 ), true ) || ! is_product_taxonomy() ) { return; } $content_type = get_term_meta( $item->term_id, 'category_extra_description_type', true ); if ( 'text' === $content_type ) { $content = wpautop( get_term_meta( $item->term_id, 'category_extra_description_text', true ) ); } elseif ( 'html_block' === $content_type ) { $content = get_term_meta( $item->term_id, 'category_extra_description_html_block', true ); } if ( ! $content ) { return; } global $wp_embed; ?> <div class="wd-term-desc wd-entry-content"> <?php if ( 'html_block' === $content_type ) : ?> <?php echo woodmart_get_html_block( $content ); // phpcs:ignore ?> <?php else : ?> <?php echo do_shortcode( $wp_embed->run_shortcode( $content ) ); ?> <?php endif; ?> </div> <?php }
Best Regards,
-
AuthorPosts
- You must be logged in to create new topics. Login / Register