I managed that with css. This is how i did it:
-
On your header.php file add a class to your image tag like this:
img class="logo" src="" alt=""
-
Then, on your style.css add the logo class:
.logo { max-width: 200px; }
If needs any change afterwards just go to the Editor and change the value directly in the style.css file.
Related Posts:
- Custom image size / thumbnail – Crop to aspect ratio even when source image is smaller than set dimensions
- How to delete resized (cropped) image uploads and prevent future resizing?
- Why WordPress automatic cropping all my images?
- How to resize images in wordpress without adding any compression or changing the color profile of the images, possible?
- get_the_post_thumbnail_url with an unregistered size
- Cropped featured image replaces original image in gallery
- add_image_size() zoom-crop
- Theme Customiser Image Control
- add_image_sizes ignoring crop sizes and using proportion
- “There has been an error cropping your image” when cropping image
- Image resize with image url
- Get img alt tag from a Image that has been uploaded through the Customizer
- Cropping an image before inserting into a post
- Why can’t I edit certain images from the WordPress Media library?
- Custom image size not regenerating when image editted
- SSL: How to make customizer images Protocol Relative in WordPress?
- Local WordPress installation doesn’t crop images
- Confusion about arguments sent to add_image_size
- add_image_size() to crop images into squares?
- is it possible to crop cover images in buddypress?
- WordPress crops images differently on retina screens?
- Hero image cropped at different dimensions
- Show image crop window on image upload
- Edit image results in copies of file being created
- Problem Cropping Images From WP Customizer
- wp_customize_image_control deprecated add_tab alternative
- Stop WordPress from cropping images using url parameters
- WordPress images not cropping properly
- Mass crop images: Landscape images -> Portrait images
- How do I get a smaller size of an avatar image
- Force square image crop during upload?
- Disable image rename on upload
- Auto-crop width, not height
- wordpress add image size crop function not working in version 3.8
- VT-resize (great alternative to timthumb) : Errors cropping (litespeed, centos 6.3)
- Plugin to select the custom image crop area
- Apply manual image cropping not to thumbnail but medium_large size
- variable crop option with add_image_size()
- Utilise WP_Customize_Image_Control to only show image picker
- 3.5.x Theme Customize: Handling Custom Control Requests
- How to get WordPress to resize images for srcset?
- How to return responsive images from a sanitize_callback?
- How to display a page’s featured image?
- Prevent image upload unless exact size
- Use Media upload in custom widget on wordpress 3.5
- Associate an existing image with a post
- Need help building a filter to edit the output of “image_send_to_editor”
- How to remove title attribute from gallery links and images
- How to upload image without post ID using the new media uploader?
- Display different header images based on current page
- Set a background color per image added to a post
- How Do I Delete All The Images from WordPress
- Consolidating two websites into one, but migrated images not appearing in Image Library
- Lazyload post thumbnails
- Is my code is right to make image shortcode
- How to remove p tags around img and iframe tags in the acf wysiwyg field
- image in my post disappeared after I upload website to remote server
- Pull images from the gallery
- Isolating images in uploads not used/recognised by WordPress
- images not showing after transfer
- How to configure sub-domain for images on Debian Apache VPS?
- Why it doesn’t show media urls on rest Api? (WordPress)
- Is there any way to Integrate WordPress with Imgur for Image Hosting
- Add custom metabox to media library images
- Autosort uploads in galleries by filename
- How to display original unmodified thumbnail
- One picture belonging different galleries?
- How can I make an image full width inside a paragraph which is 70% (text) [closed]
- How to display image in mail header using wp_mail()
- Redirect Image Url to a page via htaccess
- How does wordpress name resized image copies?
- Media Editor uppercase extensions to lowercase
- Web App mode leaves users stranded when following image links when using WPTouch with W3 Total Cache [closed]
- How to get rid of undefined variable in previous post image
- My authors need to be able to preview their upload images and manipulate and scale
- Issue with LazyLoad, sometimes my pictures aren’t showing
- Why does WordPress list all image sizes in srcset even if they’re larger?
- Lazy Loading of all Images
- Custom Image Widget
- Register an embed handler for self hosted images
- Dashboard Create Gallery missing
- Get image thumbnail size urls in media library
- WordPress is showing blank lines instead of images
- Change header image size
- How to disable post-thumbnail from generation?
- js alert in add_filter function for image_send_to_editor
- How to get large size of a post’s image?
- all images of past post messed up after changing theme
- image_send_to_editor filter – Unwanted paragraphs and line breaks
- Where is this folder [closed]
- Different image heights for different resolutions without distortion
- Get the name of an image [duplicate]
- Get an array containing ONLY post IDs of attached images
- Lots of attachments is causing slow load
- Image editor not working correctly
- Making a thumbnail if there exist a link with. jpg or .png extension in WordPress
- Aviary + WordPress Media
- Issues with the excerpt (wordcount/HTML/images)
- How to display image ALT under image?
- Faster image upload on mobile [closed]