Tagged: css
- This topic has 6 replies, 2 voices, and was last updated 3 years, 11 months ago by
nirav.
-
AuthorPosts
-
January 21, 2021 at 8:12 pm #17941
Anonymous
InactiveI’m having trouble with adding my logo. No matter what I do, it stays very small. I’m fairly new to designing my website but was really hoping there might be some additional CSS code I can add to fix this? For now, I have it only showing the site name and tagline. If you need me to turn on the logo so you can see, please let me know. Any help would be much appreciated! Thank you!
My site is: https://electricmommy.com/
January 22, 2021 at 12:36 pm #17955nirav
KeymasterHello There!
Hope you are doing good!
It is not possible without modifying PHP code as it will allow you to skip cropping of the logo.
Hope this helps!
Have a nice weekend ahead!
Regards.
January 22, 2021 at 2:30 pm #17959Anonymous
InactiveHi, thank you for the response but this doesn’t help much. Can I ask what the image size should be for the logo? If I upload the right image size, couldn’t I skip cropping altogether?
I had a logo there before and I did not need to edit the PHP code. I deleted the logo on accident and that’s how I got into this problem again. If there’s no recommended size that will work on it’s own, can you at least let me know what the existing code is and what it needs changed to?
Thanks
January 22, 2021 at 2:38 pm #17960Anonymous
InactiveSorry, I see the code in the previous comment. I will try that and see if it works but I’m still curious if there’s a preferred image size for the logo for this theme? Like I mentioned before, I was able to upload a logo previously without editing the PHP file so I’m just trying to recreate what I did the first time.
January 22, 2021 at 6:45 pm #17961Anonymous
InactiveOk, I replaced the code in the PHP file and the logo is still too small.
I replaced the following code:
add_theme_support(‘custom-logo’, array(
‘height’ => 70,
‘width’ => 220,
));with this:
add_theme_support( ‘custom-logo’, array(
‘height’ => 70,
‘width’ => 220,
‘flex-height’ => true,
‘flex-width’ => true,
) );Any suggestions what to do next?
January 22, 2021 at 6:53 pm #17962Anonymous
InactiveI figured it out! There was existing code in my additional CSS section from the previous logo. When I deleted that code and added the one you provided to the PHP file, it worked. Thank you!
January 29, 2021 at 11:02 am #18030nirav
KeymasterHello There!
Hope you are doing good!
We are glad that the issue got resolved.
Have a great day ahead!
Regards,
Team ProDesigns -
AuthorPosts
- You must be logged in to reply to this topic.