• On my page (https://www.agilicus.com/advice-avalanche-practical-steps-for-wastewater-treatment-plants/) I’m seeing an inline style for embed which is ‘position:absolution; visibility:hidden’.

    In my source, I have below. Can you suggest where this style might be added and how i can remove?

    I have a child theme of twenty twenty four, but I don’t think i’ve set anything which would cause this.

    <!-- wp:embed {"url":"https://www.agilicus.com/webinars/cyber-alerts-best-practices-put-advice-to-action/","type":"wp-embed","providerNameSlug":"agilicus"} -->
    <figure class="wp-block-embed is-type-wp-embed is-provider-agilicus wp-block-embed-agilicus"><div class="wp-block-embed__wrapper">
    https://www.agilicus.com/webinars/cyber-alerts-best-practices-put-advice-to-action/
    </div></figure>
    <!-- /wp:embed -->

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter donbowman

    (@donbowman)

    Hmm, ths might not be a theme thing.

    in wp_filter_oembed_result() it adds this. But perhaps i need to add my own site in as a trusted oembed provider.

    Moderator mizantium

    (@janmtm)

    Hi @donbowman !

    You’re right, this is the generated code for an embed, and doesn’t have much to do with the theme. Themes like Twenty Twenty-Four may add styles to embeds (to adjust their display, for example), but the core functionality comes from WordPress itself. If you’d like to edit the behavior of the embed output, you can hook into the filter. For guidance on how to do this, check out the documentation here:

    https://developer.www.ads-software.com/reference/hooks/oembed_result/

    Hope this helps!

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