Solved, JS with jQuery width(), removeAttr() to avoid wordpress inline width and height. Also negative margins.
var anchoArticulo = $('article.single-post').width();
$('article.single-post div.single-post img.ancho_completo')
.removeAttr('width height')
.css('margin-left' , -(winWidth - anchoArticulo)/2)
.css('width' , winWidth);
Class ancho_completo
is added in dashboard to the image.
Related Posts:
- remove or update add_image_size
- get the attachement url for the medium sized image
- Each custom image size in custom upload directory?
- Is there a simple way to just insert a link to an image (without inserting an image)?
- Watermarking Images with WordPress with WP_Image_Editor
- Get attachment/image info in JS
- Auto-modifying original [full size] images
- Get attachment ID of author_meta image – Attachment Metadata
- Black and White thumbnails
- Crop image to horizontal or vertical by code based on image size
- Alter image output in content
- How can I remove the image attachment ALT field?
- Open the attachment details modal
- Download button for Featured Image in every post – automatically
- Change html structure of all img tags in WordPress
- Get a list of all image sizes that match aspect ratio of original one
- Insert image in comment reply
- Randomly add a ‘ul’ list of images
- Can’t access ‘Store uploads in this folder’
- How to Display Featured Image Title and ALT Attribute
- Include photos in WordPress blog posts without uploading to Media Library
- Thumbnails are bigger in size than the original image
- The the post id from image id
- Add attribute to caption shortcode from custom attachment field
- Get an image’s alt text in a shortcode using the image URL
- Add Small Image Size to Media Settings
- function to show only featured image of the posts
- Image resize depending on orientation?
- Character Limit w/ Excerpt removes Images Why?
- Featured images not displaying at full resolution
- Check if the image exists in WordPress media library
- Faster way to put images into a blog post by using Add Media dialog
- WordPress adds extra width to post images container boxes
- Handling image uploads without thickbox
- Retrieve an array of image URLs that belong to a gallery
- Help With Custom Image and Text Widget
- Images in Blog List
- Images uploaded to the media library has strange colors. However, in the edit screen the color is ok
- wordpress post pagination with image buttons?
- How can I change get_the_post_thumbnail to make 100% width image?
- Native gallery sorting is ignored
- Disable lazy loading on specific images
- Using Jetpack carousel w/o creating a gallery [closed]
- WordPress Facebook Open Graph plugin not working for 1 specific image [closed]
- Custom responsive ‘featured image’ sizes
- removing the featured image from the post
- Dynamic image crop in WP 3.0+?
- What can i do add title to ‘large’ image?
- Height and width attribute not setting by the_post_thumbnail
- NextGEN Conditional Statement [closed]
- WordPress cutting images size
- How to set minimum required size for featured image?
- All Images not calling alt text
- Errors and warning with padlock sign when site moved to SSL
- after migration, newly uploaded images won’t show up
- Why do I have blury images in WordPress
- Disable save as image on smartphones using all browsers ( chrome, firefox, ie, cm, opera )
- limit number of images shown from gallery
- Alter the image used for a user who has not uploaded a custom image yet
- Allow users to upload multiple images to their profile
- how to change format jpg to webp?
- Fullscreen Page Background without Plugin [closed]
- Allow a specific user role I have created to only upload one image to his media library
- Implementing a modal(lightbox) for all images in all post-gallery posts
- how to regenerate webp et-pb-portfolio-image
- How to increase media image scale limit?
- How do I avoid color distortion of uploaded images?
- Where to put code that customizes API
- When upload a PNG a noise appears in the thumbnails
- How to auto add image caption from image alt?
- How to stop TinyMce from converting image url into ?
- How to automatically load an image inside the post, since it is present in uploads folder
- File upload size limit in wordpress and php.ini limit
- Blank image thumbnails in media library
- Getting extra image links in code with wp_get_attachment_image
- Broken images/videos after migration – DIVI theme- works ok on Mac OS
- Get “Image CSS Class” value from the Advanced Options section
- After reinstalling wordpress images do not appear in posts?
- Dinamically modifying attributes of images on posts
- Show images from TEXT section on PAGE wordpress
- Where to add my code to auto attach images to existing products
- Large size is not honoured when inserting image
- If file exists with page slug name show image else nothing
- Issue uploading images
- How can I use images that are on the server locally?
- Image filter works on attachement pages but not posts. I can’t get the image ID
- Display different Images depending on the current day
- Get images uploaded to this post in popup on editor screen
- Remove “align” attribute on images
- Uploading Images for a section
- Some images suddenly not appearing
- Paginate Gallery [closed]
- How do I add a nested conditional within an echo – to use a default image if there isn’t one in the post?
- WordPress: Preload next post images
- How do I change a Themes Header Image?
- Set add_image_size() greater than content width in media box
- Blurry Images WordPress 5.8.1
- Why is inline CSS added to images automatically? [closed]
- How to show file size of featured image? [duplicate]
- Images have dissapeared from media library and site