[Support request] Iframe in category page not working

Home Forums Support [Support request] Iframe in category page not working

Home Forums Support Iframe in category page not working

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1665007
    Gian

    Dear GP support,

    I used to have Google Maps embedded onto different category pages (see the one attached for example) with the iframe code like this <iframe src=”https://www.google.com/maps/xxxxxxxx width=”xxx” height=”xxx”></iframe>.

    See also Wayback Machine for reference https://web.archive.org/web/20201020155214/https://www.viaggiaregratis.eu/messico

    I’ve noticed recently that the code was removed automatically and now when I try to add again the code is not possible to save it on the category page, while I don’t have any issue on blog posts or other pages.

    Any idea why it’s happening?

    Thank you in advance

    #1665771
    David
    Staff
    Customer Support

    Hi there,

    how is that iframe being added to the category archive?

    #1666171
    Gian

    Hi David,

    Through the WordPress text editor https://imgur.com/a/WLeITdy adding the code <iframe src=”https://www.google.com/maps/xxxxxxxx width=”xxx” height=”xxx”></iframe> to show the map.

    Thank you

    #1666345
    David
    Staff
    Customer Support

    Are you using Yoast ?
    As i found this issue:

    https://github.com/Yoast/wordpress-seo/issues/16438

    It seems adding an iframe to the Text editor is stripped due to some security changes they made. But you can paste the iframe into the Visual editor and that works.

    #1667111
    Gian

    Hi David, thank you for pointing me in the right direction, however if I try to paste the iframe into the visual editor, this is the result: https://imgur.com/a/STWNB3v

    #1667471
    David
    Staff
    Customer Support

    I am not sure what the solution is – as the Category Description is a core function of WP that by default doesn’t accept HTML. So whether it be Yoast or another plugin that is allowing you to add the HTML, it looks like the plugin or WP is sanitising the HTML. GP has no control or influence over that behaviour.

    If Yoast is providing the HTML editing capabilities – have you checked with their support ?

    #1667638
    Gian

    No problem David, I will check with Yoast or look for an alternative.

    Thank you for your help!

    #1667850
    David
    Staff
    Customer Support

    No problems! Hope you find the solution.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.