Home Forums WoodMart support forum Video on category extra description not showing

Video on category extra description not showing

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #639970

    ddf
    Participant

    I’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?

    #640085

    Hello,

    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,

    #640412

    ddf
    Participant

    Hi, 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.
    #640536

    Hello,

    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,

    #640565

    ddf
    Participant

    Ok, see attached.

    #640733

    Hello,

    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,

    #640755

    ddf
    Participant

    Hi, 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?

    #640871

    Hello,

    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.

    #640930

    ddf
    Participant

    Hi, 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.

    #641320

    Hello,

    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,

Viewing 10 posts - 1 through 10 (of 10 total)