How can I change the default image behavior?
How can I change the default image behavior?
How can I change the default image behavior?
Can we reuse WordPress drag drop media upload in plugins?
/css/media.min.css?ver=4.8.1 is not indicative of a “min version”. The filename of this CSS file is LITERALLY: ‘media.min.css’. (Additionally the file is versioned with the ver parameter set to 4.8.1). So atetmpting to enqueue: wp_enqueue_style(‘media’, get_template_directory_uri().’/css/media.css’); Will certainly fail, and should in fact be: wp_enqueue_style(‘media’, get_template_directory_uri().’/css/media.min.css’);
The get_media_embedded_in_content() uses a regex to match the input tags, but the HTML for playlists is not made from a single tag, instead it’s constructed with tags like <div>, <script>, <noscript>, <ol>, <li>. Recently I posted an answer to get post playlist like get_post_gallery() that you can check out, to see if it helps. It … Read more
There are two main concerns with using animated gifs in WordPress: dimensions and file size. When you upload a gif file to the media library, WordPress stores the original file and additional files for different sizes ( medium, thumbnail ). Gifs of other sizes will be stored with one frame of animation only, so they … Read more
Gifs displaying soft?
This is a known issue in WordPress bellow v4.8 Please make sure that wp is up to date. In some cases it might be a caching issue, so try clearing your cache (or just test in a different browser). Let me know if that does it.
Js file (function() { tinymce.PluginManager.add( ‘custom_class’, function( editor, url ) { // Add Button to Visual Editor Toolbar editor.addButton(‘custom_class’, { title: ‘Insert PDF Tag’, cmd: ‘custom_class’, image: url + ‘/icon.png’, }); // Add Command when Button Clicked editor.addCommand(‘custom_class’, function() { var text = editor.selection.getNode(); if ( text.length === 0 ) { alert( ‘Please select some … Read more
Haven’t been able to figure this one out, so I’m going to go ahead and close it. Seems to be localized to a specific computer/user account.
Replace Swedish characters in filenames