Removing WordPress Icon from oembed link footer

Here’s the code to remove the site icon markup from embeds: add_filter(‘get_site_icon_url’,’__return_false’, 10, 3); If you want to remove the entire site-icon + site-title then use this: add_filter(’embed_site_title_html’,’__return_false’); The right thing to do though would be to upload your own site-icon in the WordPress customizer and show-off your branding. Min image size it needs is … Read more

ted talks embed fixed, but can’t control size

You can control the size of the embedded TED video by using the shortcode: [ted id=”1650″ width=”300″ height=”200″] If you want to have it predefined, you can use: if(!isset($atts[‘width’])){ $atts[‘width’]=600; // Default width } if(!isset($atts[‘height’])){ $atts[‘height’]=400; // Default height } so the code here will be: // Whitelist the TEDTalks oEmbed URL wp_oembed_add_provider( ‘http://www.ted.com/talks/*’, ‘http://www.ted.com/talks/oembed.json’ … Read more

Is it possible to modify the default YouTube embed attributes string?

There is a filter with the same name as the function wp_embed_handler_youtube https://developer.wordpress.org/reference/hooks/wp_embed_handler_youtube/ add_filter(‘wp_embed_handler_youtube’, ‘ehy_callback’, 10, 4); function ehy_callback($embed, $attr, $url, $rawattr){ //make necessary changes here return $embed; } You can add the code in functions.php of your child theme.

Any way to use a custom Parameter for vimeo embed without using an iframe?

You should add a filter on oembed provider to allow customs parameters: add_filter( ‘oembed_fetch_url’, ‘my_oembed_fetch_url’, 10, 3 ); function my_oembed_fetch_url( $provider, $url, $args ) { // You can find the list of defaults providers in WP_oEmbed::__construct() if ( strpos( $provider, ‘vimeo.com’ ) !== false) { // Check the full list of args here: https://developer.vimeo.com/apis/oembed if … Read more

use of tag into wordpress

I think that WordPress currently not allow the svg tag in his editor. But you can change this, see this answer for more hints, background. I think the follow small source should help you to allow this tag and his attribute. Copy in a plugin (add a plugin header) and activate. But I think, that … Read more

wp_embed_register_handler is not working

You are trying to match the r2jeim68kuq6.html part, but you’re not allowing dots in your regex pattern here: ‘#https://vidoza\.net/([a-zA-Z0-9_-]+)$#i’ You can try e.g. (removing the A-Z too because of the case-insensitive i search): ‘#https://vidoza\.net/([a-z0-9_-]+)\.html$#i’ if .html is a standard extension and where you also adjust the iframe source to: src=”https://vidoza.net/embed-%1$s.html” Hope it helps!

how to embed external webpage in my wordpress page

You could simply iframe the content into your pages? <iframe src=”http://www.w3schools.com”></iframe> Some more info on iframe params are here: http://www.w3schools.com/tags/tag_iframe.asp Otherwise a nicer alternative might be to show the external pages via a modal window (which is still essentially an iframe). You could try Fancybox (http://fancyapps.com/fancybox/#examples), there are iframe examples and code on the page, … Read more

How to change WordPress embedded player size or show just the play button

I assume you’re talking about embedding audio files, like: The audio embed handler is registered within wp_maybe_load_embeds() and filtered through the wp_embed_handler_audio filter. So within WP_Embed::shortcode() this generates to: so some of the methods mentioned here for the shortcode should work. Since we are using the Output: Play button: Pause button: Tested on the Twenty … Read more

Customize Embedded Tweets (or, How To Hide Photos in Embedded Tweets)

Here’s one way using the oembed_fetch_url filter to add the hide_media query parameter, that’s also mentioned in the Twitter doc page you linked to: Set an oEmbed query parameter of hide_media=true or add a data-cards=”hidden” attribute to the resulting <blockquote> element to prevent expanded content display. Here’s an example: /** * Hide media for all … Read more

Youtube – Embed as IFRAME

If you don’t want to utilize the latest oembed functions and want the old iframe way from any page or post, you can do these: Get the embed code from any youtube video. While editing/creating your post/page, select the Text(HTML) mode of the editor Simply paste the embed code As noted by PayteR, this will … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)