Styling embed code syntax in WordPress post [closed]
WordPress does this natively. Either use a “code” block in Gutenberg or just add the code with <pre> in front and end with </pre>. No extra plugins needed.
WordPress does this natively. Either use a “code” block in Gutenberg or just add the code with <pre> in front and end with </pre>. No extra plugins needed.
I fixed my own issue by clearing my browser cache. (Ugh. It’s always the simplest thing that I miss.)
Use a Global Styles Filter to override the style: add_filter( ‘wp_theme_json_data_default’, function ( $theme_json ){ $new_data = array( ‘version’ => 2, ‘styles’ => [ ‘blocks’ => [ ‘core/embed’ => [ ‘spacing’ => [ ‘margin’ => [ ‘top’ => ‘2rem’ ] ] ] ] ] ); return $theme_json->update_with( $new_data ); }); An alternative that may also … Read more
Youtube embedded videos unavailable
add_filter is failing to append &rel=0 to end of YouTube URL in oEmbed
Embedding a custom live chat (gen. from Salesforce) into my WordPress header
Not allowing my site to be embedded elsewhere via oEmbed
Would it be possible to disable embeds for specific user roles? If so, how?
You can do that by using the comment_text filter. It runs for each comment, so with some regex you can find all links in the comment and loop through them. You make one more check to make sure the link has an image extension (jpg, jpeg, png, etc). If it does, we can embed it … Read more
Embed links work on new page creation, not on edit