Multiple solutions for defining the images ->
Post Thumbnails
While creating a new post, you can set the Featured Image which will automatically set the post image.
Since your image is full width, you need to set the size of the thumbnail using: https://codex.wordpress.org/Function_Reference/the_post_thumbnail
Media Upload
-
Go to
Media->Add New. Upload your image and after upload is complete, click onEdit. -
On the right hand side, copy the
File URLin the save metabox and replace that URL in your CSS. You can view the list of all images inMedia -> Librarylater on.
This solution is for editing the code directly.
Advanced Custom Fields
If there is a need to allow an image uploader directly replace this image, you need to use Advanced Custom Fields Image upload field and refer that field in your header.php file for the src attribute.
Related Posts:
- Using a full-width hero image that can be changed in the dashboard by a user
- How to reference a theme image in a stylesheet?
- Making WordPress Gallery (.gallery-item) Responsive?
- Adding HTML within an image title attribute
- Width 100%: Aspect ratio of image
- Add CSS class to every image
- How to Make WordPress Default gallery responsive on mobile?
- Responsive background images added inline
- @wordpress/create-block image url in css
- Why isn’t “background-image: url”working with Bootstrap carousel on WP?
- How can I upload an image for background use using the Theme Editor in WordPress?
- Override img class in gallery
- Removing height and width from images with a caption
- Multiple amp-image overlays. How to properly do this in wordpress?
- Image not shown in the theme as it’s showing in HTML template [closed]
- How to handle a background-size: cover image in WordPress?
- Background-image not showing? [closed]
- t5-fresh-editor-stylesheets.php breaks image placement in WP Beta 3 editor
- How do I get my main image to stretch the full length of the screen?
- How to upload and style svg logo?
- How would you add sequentially numbered labels to images in posts?
- css to fit image by HEIGHT
- a: hover issue with image issues [closed]
- All 3?: Responsive resizing of images + image width of actual image for small images + max-width for all larger images
- Moving an image to the side [closed]
- Image Captions Have a 10px Extra Margin, And It’s Not CSS? [duplicate]
- Can i have 2 separate Galleries on 2 separate pages each go to a DIFFERENT Attachment.php file?
- Image modification
- How to remove image size inline style in article and include caption
- Is there a layout to place 2 same sized images in two columns on the WordPress page?
- Landing Page with HTML CSS JS and Images on wordpress
- How to change background image
- Change header image size
- Adding custom html/css/images to Theme
- Is there a way to create referable automatic numbering in image captions?
- Why do images inserted in the post content via the_content() go off the max-width?
- How can we achieve this image css style?
- Remove image border in twentyeleven theme [closed]
- How to display posts with images in fullscreen slider
- Responsive images in Bootstrap 4 slider
- Put image onto header
- Are WP images responsive by default?
- Image thumbnail on single product issue | WooCommerce
- Background image call problem
- all images of past post messed up after changing theme
- Custom styling Insert Media window
- Display ajax preloader for large images within posts
- An image on my site is showing as the wrong image [closed]
- Theme files and imagesnot loading on a mobile device
- Is there a good way to use CMS images with CSS
- change with CSS the color of an svg background image set with “background-image: url()”
- Stop underlining image links
- Font size on image captions on mobile
- Parallax image problem
- If image width bigger than height [duplicate]
- Theme using masonry layout script rendering overlaped images in Google Chrome [closed]
- Why is inline CSS added to images automatically? [closed]
- Create decorative image border with CSS? [closed]
- WordPress update leads to 404 error on admin page and signup. CSS mishap with all plugin related functions
- I am having trouble displaying an image at the top of a widget area [closed]
- Is there a way to add background-image to theme.json?
- CSS how to target the caption of one individual image?
- How do I set attributes for all images in a site
- Bootstrap Dropdown menu is not working
- get_post_gallery with Gutenberg
- Saving the pre-sanitized filename of an attachment as the Title or Caption
- Add aditional class to get_avatar when showing image
- Double thumbnails?
- Alter media caption/description conflict in WordPress?
- No srcset for hard-cropped thumbnails
- Twitter Bootstrap Use Collapse in Custom Post Type
- Loop through child images of a parent for a Nivo Slider
- Limit author image size
- Remove the http protocol from images
- Load custom css after bootstrap
- Display one random image, but only if landscape
- How to change image url?
- How to order images in a post in WordPress 3.3?
- Set jpeg_quality for certain post-types
- WordPress automatically downscaled images larger that original
- I want to use the GD image editor for just one function then switch back to ImageMagick
- add_image_size wont work after get_intermediate_image_sizes
- How to get the image-URL from Media-Upload in a post?
- Featured Image Cetegory Not Shown In WordPress
- after migration, newly uploaded images won’t show up
- wordpress add image size crop function not working in version 3.8
- Cache issues with images not showing up
- Specific Days, Specific image on Front Page
- Doing a bulk replace of images through back-end
- How to change a theme’s footer image
- Can’t upload Images to WordPress – Error 500 Response
- WordPress 4.4.2 upload give error, can’t write is upper directory allowed to be written
- How to attach 1000’s of unattached images
- Unable to delete images in Media Library
- set specific dimension or minimum upload size [duplicate]
- Content around featured image
- Getting featured image of blog page rather than post image
- How to get customable image header?
- How to add a link to media file for every image inserted in content?
- image doesn’t display when option on product page chosen