Unable to delete images in Media Library
Unable to delete images in Media Library
Unable to delete images in Media Library
Somewhere in your theme or parent theme, there’s this line: add_theme_support( ‘post-thumbnails’ ); If it’s in your child theme, you can simply remove it. If it’s in your parent theme, you can add this to your child theme functions.php file. // in your Child Theme’s functions.php // Use the after_setup_theme hook with a priority of … Read more
WordPress not choosing the right image from srcset
I am assuming you used the WordPress Importer? Did you select the “Import images” option? I think this would solve your issue. To clarify on the issue: Your images were not imported in the wp_posts database. They are stored in there as an “attachment” post type. The WP Gallery Shortcode references the id of each … Read more
The Advanced Options section you are talking about the one in the Image Details, the modal that shows when clicking here: that part is tinyMCE, its part of the tinyMCE editor, none of these fields are being saved in the WordPress database: this is just and interface to gather data that will be set in … Read more
Hmm, I figured it out. I changed the thumbnail AND removed the needed class img-responsive to apply responsive dimensions. Once I kept those all was fine. –
Images are not getting uploaded
Broken images/videos after migration – DIVI theme- works ok on Mac OS
I wrote this function for you, which will first make a copy of the external image, crop it , and return the ID of it: function external_image_loader ($image_url, $post_id, $title) { $img_name = basename ($image_url); global $wpdb; $query = “SELECT post_id FROM {$wpdb->postmeta} WHERE meta_value=”$img_name””; $id = $wpdb->get_var($query); if (is_numeric($id)) { return $id; } else … Read more
if the png lies directly in your theme folder try this: img src=”https://wordpress.stackexchange.com/questions/264471/<?php echo get_template_directory_uri(); ?>/logo.png”