Tag Info

Hot answers tagged

1

As You have stated in comment that You have disabled header images, but its still returning default image. Explanation : It depends on how it was coded in the theme by the developer. For an instance, it seems like if you disable all header images, it returns Default header set by the developer / theme. Now, Even if the function header_image() doesn't ...


1

Yes, unfortunately, it looks like you'll have to edit the header.php and remove the tag from there. Even if you disable the default image on there, the image tag will still show in your html. Since you're using a child theme, what's the risk of editing your child theme's header.php?


1

Photon is the part of jetpack that uploads your images to wordpress.com so they can be served from their CDN. You can turn it off here: yourdomain.com/wp-admin/admin.php?page=jetpack_modules&module_tag=Photos%20and%20Videos


1

It's only a guess, but it's also most probable cause... When you upload an image to WP, some metadata is generated and stored in database. This metadata contains such info like name, path and size of the image (to be more precise - paths and sizes of all created images based on uploaded one). And... This metadata is stored as serialized array. When the ...


1

I found that what was causing this issue was a plugin I had enabled that was supposed to handle retina images called WP Retina 2X. I disabled the plugin and it immediately fixed the issue.


1

The WP function get_attached_media() should provide the info you need. If used in this way... $media = get_attached_media( 'image' ); ... the $media var should contain the wp_post objects for all attached images. Function documentation in the WP Codex: https://codex.wordpress.org/Function_Reference/get_attached_media


1

If you are uploading images the same size as the large size in your WordPress installation, then set your Large size to 0x0 in Settings -> Media or remove this line: add_image_size( 'large-size', $LARGE_SIZE, 9999 ); EDIT #1: Try to add this filter to delete the original image: add_filter('wp_generate_attachment_metadata', 'delete_fullsize_image'); ...


1

First of all i'd recommend you stop using title attribute for html container purpose: Image title (and the element name speaks for itself) should provide additional information and follow the rules of the regular title: it should be relevant, short, catchy, and concise (a title “offers advisory information about the element for which it is set“). ...



Only top voted, non community-wiki answers of a minimum length are eligible