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?
- Customize all image captions
- Animated GIF on WordPress posts? [closed]
- Generate images to be associated for tag and category?
- I have no images in an activated wp theme
- How to know what size image to use for background? [closed]
- Understanding WordPress image sizes and responsive images
- Image large size [closed]
- Media gallery images url instead of ID on WP API Response
- Why doesn’t WordPress use the smaller sized image?
- css to fit image by HEIGHT
- Alt Image WordPress [closed]
- Some Images Disappeared from Media Library?
- What is required in the hosting environment for WordPress to process an image into multiple sizes?
- Get an image from url, resize it, and save on a custom folder (not the media library)
- Get all custom sizes in srcset attribute
- Why isn’t add_image_size(‘event-secondary-image-thumbnail’, 250, 150) working?
- How to add thumbnails to posts and pages automatically in a uniformed fixed elegant way?
- How do I implement an image viewer and rotator? [closed]
- Upload images – Theme options
- Is it possible to modify default image name suffix?
- How to replace post image url before posting using api?
- image upload/edit is broken: “Image data does not exist. Please re-upload the image.”
- Background Image Does Not Display on Page
- Can’t fix corrupted images
- Deleted Image giving a 301
- Avatar picture is broken
- WordPress append -1 to the image name
- WordPress Single Post image gallery as slider
- There is an image embedded on my page that I can’t locate in order to delete. Please help me!
- Could creation of various image sizes cause slow form submission response?
- How to add featured image use HTML
- Correct color profile and saving? Thumbnail creation?
- Allow users to upload attachments to certain posts
- WordPress and Advanced Custom Fields and Flickity
- How to get image ID based on get_theme_mod image URL?
- How to bulk update then save images in wordpress posts
- stop wordpress from resizing feature gif images
- Change wordpress default upload path to another domain
- Modify media file markup output
- Responsive images in Bootstrap 4 slider
- WPML – Change media uploader language
- How can I add an “Attach image to this post/page” link on the Add Media lightbox?
- WordPress Is Saving Original Image Only
- Display images from JS?
- Create a custom attachment thumbnail for quick page load
- Change the image for a certain URL
- How to make an image bigger with wp_get_image_editor
- Assign one featured image to multiple posts?
- An image on my site is showing as the wrong image [closed]
- Set padding for all content except images and few more elements
- Font size on image captions on mobile
- I moved WordPress to root now posts go to 404
- How do you add text to a carousel of images like here in this example
- How can we see which posts don’t have a featured image or it doesn’t exist anymore?
- I tried to move the featured image below the paragraphs but now it is displaying twice
- How To Showcase High Quality Images On WordPress Website?
- How to crop image in WordPress with aspect ratio for any size of image
- Copy Content with Images to Other Site