wordpress doesnt add media.css file

/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’);

Get the Playlist embedded in Post/Page content

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

Disable wordpress gif compression?

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

Change behavior of the “ADD Media” buttom

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

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