• Resolved unster

    (@unster)


    Hi,

    since few weeks, no idea when exactly, my videos hosted on streamable.com are being stripped from product tag descriptions.

    I am hosting there and embedding videos of my product usage and suddenly, when saving changes to text on tag page – iframe is being truncated.

    There you have code when being saved:

    [su_row][su_column size="1/3" center="no" class=""]
    <div class="descVidHowTo" style="width: 100%; height: 0px; position: relative; padding-bottom: 100.000%;">
    <iframe style="width: 100%; height: 100%; position: absolute; left: 0px; top: 0px; overflow: hidden;" src="https://streamable.com/e/z44se6?loop=0" width="100%" height="100%" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
    </div>
    [/su_column]

    and there it is after save:

    [su_row][su_column size="1/3" center="no" class=""]
    <div class="descVidHowTo" style="width: 100%;height: 0px;padding-bottom: 100.000%">
    
    </div>
    [/su_column] 

    Iframes saved weeks back are working just fine. I have problems only with new tags.
    I’ve tried following, but without luck: https://docs.woocommerce.com/document/allow-html-in-term-category-tag-descriptions/

    Example of expected outcome: https://zdrap.to/pomysl-na-prezent/prezent-dla-chlopaka/
    Currently, in the place of vide there is just blank space…

    please advise,
    Tom

    • This topic was modified 3 years, 10 months ago by unster.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @unster ,

    I have tested the example code to Allow HTML in term (category, tag) descriptions and it worked for me to add your iframe and show it on the tag description.

    Also, your site seems to be rendering the iframe and other HTML elements on the tag description as well. Have you already fixed the problem?

    Let me know the update.

    Thank you ??

    Thread Starter unster

    (@unster)

    Hi @rur165

    It is not working for me… This is example:

    Page where I have set this up weeks ago, working fine: https://zdrap.to/pomysl-na-prezent/prezent-dla-dziewczyny/

    New page where I am trying to copy-paste same code:

    <h2>Ale co to jest plakat zdrapka?!</h2>
    [su_row][su_column size="1/3" center="no" class=""]
    <div class="descVidHowTo" style="width:100%;height:0px;position:relative;padding-bottom:100.000%;">
    <iframe src="https://streamable.com/e/z44se6?loop=0" frameborder="0" width="100%" height="100%" allowfullscreen style="width:100%;height:100%;position:absolute;left:0px;top:0px;overflow:hidden;"></iframe>
    </div> [/su_column]

    and I get this, after saving:

    <h2>Ale co to jest plakat zdrapka?!</h2>
    [su_row][su_column size="1/3" center="no" class=""]
    <div class="descVidHowTo" style="width:100%;height:0px;padding-bottom:100.000%">
    
    </div> [/su_column]

    As you can notice, only iframe line is being removed.

    Affected page: https://zdrap.to/pomysl-na-prezent/prezent-dla-zony/

    • This reply was modified 3 years, 10 months ago by unster.

    Hello @unster ,

    This is a challenging one as we are dealing with custom codes apart from core features.

    I found some people made it working by adding this piece of code in their theme’s functions.php file –

    // allow html in category and taxonomy descriptions
    remove_filter( 'pre_term_description', 'wp_filter_kses' );
    remove_filter( 'pre_link_description', 'wp_filter_kses' );
    remove_filter( 'pre_link_notes', 'wp_filter_kses' );
    remove_filter( 'term_description', 'wp_kses_data' );

    You can try this as well.

    I checked both versions of the code and they are working for me with my Storefront theme in a fresh WooCommerce installation.

    You can also check with a default theme instead of your current active one. Disabling all plugins except WooCommerce will also help you understand if any other plugins are causing the issue.

    This is a fairly complex customization topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    If you need a paid solution, you can consider taking help from one of our partner’s website.

    Thank you ??

    Hi there,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Thank you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘IFRAME being stripped from product tag description’ is closed to new replies.