This is an inline CSS from source code, normally it’s because there is somewhere in the theme options where you can upload an image for header and the code was written to process that case by inserting an inline CSS directly. If you already found that line of code in header.php then you can replace the $header_image with your own image. After that you can strip off the inline CSS, make a class for the header image and add the properties to the style.css file.
You can use code tag in your post when quoting codes so it’s easier for us to read the code and help you further.
Related Posts:
- “There has been an error cropping your image” when cropping image
- Display different header images based on current page
- Multiple post image, echo url (path of image)
- How to echo images Urls from a wordpress post, that are relally in the post
- Automatically generate multiple image sizes for element
- Add custom version to an image
- How to get dimension of Logo and Crest
- Set default image sizes in WordPress to hard crop
- How to find attachment by it’s name?
- Which action hook can I use when a featured image has been selected
- How to disable “insert into post” only when selecting the Featured Image?
- Is there a way to define a default caption to all uploaded images
- How can I add the “Use as featured image” to a custom metabox?
- Image resize with image url
- Dynamic-Image-Resize Plugin does not output anything
- The WordPress Gallery, Grabbing The Link and Images?
- How to place an image into header.php? [closed]
- Uploading an image as featured image from frontend form
- How to upload images from my directory into my wordpress?
- Add a featured image in my theme?
- @wordpress/create-block image url in css
- How does WordPress work out the srcsets?
- How to include a picture in a blog post such that it will show in Facebook?
- Remove ‘wp-content/themes/themename/’ from Image path
- help getting featured image using get_posts
- Why can I not view image attachment pages?
- Images are randomly deleted from server
- Restrict Image Uploads to a Certain File Type
- Rename media files generated during upload
- Image popup in a lightbox / overlay from the backend 3.5 admin area (plugin)
- Auto resize images after adding a new size
- media sideload image and Google Content
- How to display alt tags in img src?
- Big Image on Featured Post, Normal on Single Post
- Making images in posts link to the image file rather than the attachment page
- offload media to external services [closed]
- How to create ‘Local’ filters for WordPress srcset sizes in template parts?
- How to add image and featured image to post by WP REST API
- Jetpack’s photon causes local site to try and serve images from WordPress CDN [closed]
- How to stop wordpress always displaying full-res images
- Transfer only original images to new site
- How to filter the image embed code based on link type
- Retain the original name of the image on resize
- Upload image without media-upload [duplicate]
- Tinymce and uploading local pictures
- Time Based change of image
- Where is the right place to store custom images?
- Resize images in batch
- how to get image full path from WP_Post Object?
- Featured Image problem with resizing
- WordPress Image Scaling Quality
- Create a post from every image in my media gallery
- Not seeing text alignment option in Image block
- wp_get_attachment_url images in wrong order [closed]
- Auto delete pictures in media library by age
- Migrated site – Images have 404 error
- Show (print) featured image all dimensions (height, width)
- Speed Up Website With High Resolution Images
- Allow SVG in WP step by step
- Serve different images per screen size and cache possible?
- Removing Images from a WordPress Post
- How come the images arent loading properly?
- How to use the thumbnail size with catch_that_image
- Random Image Script Working but Want to Avoid Duplicates
- Not able to retrieve image id from sibling site within a switch_to_blog
- How to display a warning when an uploaded image is too small?
- How to link image in WordPress – Elementor when certain element does not offer that option?
- Large uploaded images not resizing?
- How can i place featured image after h2
- Having an issue in compressing Images in wordpress site
- How to generate alt attributes with php / filters?
- Custom image size not displaying with wp_get_attachment_image()
- unsharp thumbnails after uploading image
- How to delete original image file after upload and resize
- Image links broken / “DNS Update Required” message
- Convert multiple image blocks to gallery block in Gutenberg?
- WordPress After migration some images src is empty
- Access html element in media modal with jQuery
- Image sizes reset when changing theme
- How to get featured image of last post in a category?
- How can I add “alt” tag to element?
- How to make image uploads default to full size?
- Recovered WordPress installation (on localhost) links broken and images not showing
- Image is missing on site homepage
- Media sizes do not appear
- How to make Facebook share the featuterd image from url on WordPress
- Changing current post image uls with a function
- How to watermark wordpress images from wp-content/uploads folder with htaccess and php?
- How to display every pictures from all the posts on one page?
- How to add multiple images in a page
- Images not rendering
- Retrieving Image Storage path
- how to display all images from their siblings/ from same parent?
- Define Folder to save Images
- Specify what to do for a specific image number of the post
- adding images to wordpress pagination?
- How do you change all images dimensions to have the same size?
- Display first image’s caption
- website images getting corrupt automatically
- The uploaded images are only full-size (original)