wp.media add context
wp.media add context
wp.media add context
Altered media sizes (in dash), not updating to existing images/posts
Fixed it by adding Header set Access-Control-Allow-Origin “*” in apache2.conf: <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted Header set Access-Control-Allow-Origin “*” </Directory>
Use this plugin to regenerate the images and check the posts . also check with inspect element to see if the images has 728×410 at the end after the regenerating .https://wordpress.org/plugins/regenerate-thumbnails/
You will need to paste your code in order for us to review where the issue is, however, I can demonstrate how I accomplish this in WordPress v3.5 Please observe the comments in my_insert_custom_image_sizes: function my_insert_custom_image_sizes( $sizes ) { // get the custom image sizes global $_wp_additional_image_sizes; // if there are none, just return the … Read more
While the other answers cover part of the answer (old WP install), it is important to note: The options appear, if one of the options is set. They are stored via the keys upload_path and upload_url_path. Before: Run (or add directly in the DB) $ wp option set upload_path foo $ wp option set upload_url_path … Read more
The video player uses the $content_width variable, which you’ll find in functions.php within the theme. The $content_width defines the best fit for media on a particular theme, so this should be the best fit for twentyfourteen. You’d set your own value in your own theme.
I think your real problem here though is timing, in that you should only do the remove_action and add_action in the wp_enqueue_media action fired at the end of the wp_enqueue_media() function, after it has added the action you’re replacing: add_action( ‘wp_enqueue_media’, function () { if ( ! remove_action( ‘admin_footer’, ‘wp_print_media_templates’ ) ) { error_log(“remove_action fail”); … Read more
You can bind to the ‘ended’ event by targeting the audio element in the playlist: $(‘.wp-playlist .mejs-mediaelement audio’).on(‘ended’, function (event) { console.log(‘ended’); }); The ‘click’ events are just standard, eg: $(‘.wp-playlist-item’).on(‘click’, function (event) { console.log(‘clicked’); });
Use this plugin to regenerate the images and check the posts . also check with inspect element to see if the images has 728×410 at the end after the regenerating .https://wordpress.org/plugins/regenerate-thumbnails/