Your cart is currently empty!
Homepage › Community Forums › Ambition › Blurry Logo & Resizing
Hi Wes,
We are having a couple of issues on a site we are developing.
1. From a previous thread you gave me some instructions for changing the header area. We have done that, which brings up the first issue.
How can we keep the logo from resizing? We moved the nav down to the bottom of the header area so it doesn’t change size anymore. How can we keep the logo from changing size as you scroll down the page as well?
2. The logo looks blurry at both sizes. We originally uploaded an image that was 300 x 60 (as directed in the theme documentation) and it looked blurry so we uploaded an image that is 600 x 120, expecting that it would be sized down and keep it’s clarity. However, the logo still looks blurry.
We changed the height in the .header-image .site-title > a part of the CSS from 76px to 60px but that didn’t fix either issue.
How should we proceed?
Here’s a link to the dev site – http://amgtx.wpengine.com/.
Thanks in advance,
Ken Partain
Take a look at line 1225 in your style.css file and change the height from 56px
to 60px
instead –
.header-image .light .site-title > a {
height: 60px;
}
The Logo/Image you uploaded is probably too small, so when you increase the size it stretches the image (which causes the blurriness). You can upload a larger image by first changing the size of the Header/Logo code in the functions file.
First find out the size of your image, and then go to your functions file and add it in the header/logo section. It should look like this –
//* Add support for custom header
add_theme_support( 'custom-header', array(
'flex-height' => true,
'width' => 300,
'height' => 60,
'header-selector' => '.site-title a',
'header-text' => false,
) );
Then you can upload that logo to the header uploader (you won’t need to crop the image). After you do that, then you should be able to increase the size in your CSS like before but without a blurry image.
Let me know if this works.
Hi Wes,
I’ve followed your instructions by editing the CSS and functions.php.
I changed the logo to a width of 320 and height of 64. I made an image that would fit that exactly and uploaded it to the site.
I also changed the CSS height to 64px on the .header-image .site-title > a
and .header-image .light .site-title > a
However, the logo is still blurry. Do you have any other ideas?
Thanks,
Ken
The image itself is still too small and will look blurry if stretched – http://amgtx.wpengine.com/wp-content/uploads/2017/05/AM_Georgetown-Wht_320x64.png
Do you have a larger higher quality version?
If I open the image outside of the theme I notice that it still looks blurry a little, and if I increase the size it will show up even more blurry. I would try creating a larger image (twice the size) first. Examine the image in Photoshop (or whichever program you use) and make sure it’s not blurry on your computer. Then upload that image to your Media Page in WordPress and send me the link so I can take a look and let you know how we can manually add it in CSS.