Home › Forums › Legacy Support › Support queries › Styling issues › Wide logo automatically resized to smaller size!?
- This topic has 13 replies, 2 voices, and was last updated 8 years, 6 months ago by H.K. Latiyan.
Viewing 14 posts - 1 through 14 (of 14 total)
-
AuthorPosts
-
March 26, 2016 at 3:48 pm #38976slick8088ParticipantHi there, I have a logo with a size of 526x103 px, when i add it to the website it looks like this: http://abload.de/img/logo113qfh.png which is clearly too small. After that i adjusted the height under wp-admin->appearance->customize->header->adjust header-> logo size to: 103px and it didnt resize. After that i looked around in the forum and FAQ and found these settings, which i added in custom css: nav .menu li a{ padding-top:50px !important; padding-bottom:50px !important; } header #searchicon{ padding-top:45px !important; padding-bottom:45px !important; } I adjusted the values so that my logo would fit in the header space, but still the logo wouldnt resize and the logo looks like this: http://abload.de/img/logo2tlobh.png I actually got it working with a logo which wasnt that wide (http://abload.de/img/logo3nso97.png), with the same settings, but i do want a logo that wide with the text. Help would be much appreciated.March 28, 2016 at 11:56 am #39198H.K. LatiyanParticipantI don't know why it didn't resize the logo, if you go to appearance->customize->header->logo size (height in px): it is set to 48 by default if you make it 103 it will resize to 103px. I cross checked it and it works fine. Please re-try this setting, as it works fine. Still if its not working then you can use this css in your wp-admin->appearance->customize->custom css:
adjust the px accordingly.#logo img, #alt_logo img { max-height: 48px; }
March 28, 2016 at 12:20 pm #39210slick8088ParticipantHi Latiyan, i tried everything, even uploading the logo again 2 browsers and it still wont work. :( I made a screenshot where you can see that i changed the settings for height, but it still won't resize: http://abload.de/img/unbenannt-13er2u.pngMarch 28, 2016 at 12:59 pm #39228slick8088ParticipantOk, got it working, just added: #logo img, #alt_logo img { max-height: 103px; max-width:526px; } Width seemed to be important in this case. Now i have another problem: http://abload.de/img/unbenannt-1lwsl8.png The padding for the submenu is too big, how can i adjust the padding only for the submenu? Thanks for the help :)March 28, 2016 at 1:38 pm #39237slick8088ParticipantI also just noticed that the logo won't resize when the website is loaded on a mobile phone. And the area to click on the logo doesn't cover the whole logo, any ideas how i can correct this? Thank youMarch 29, 2016 at 12:11 pm #39502H.K. LatiyanParticipantYou have added this custom css: nav .menu li a { padding-top: 50px !important; padding-bottom: 50px !important; } Please remove the above css and instead use this css: nav ul#menu-main-menu>li>a { padding-top: 50px !important; padding-bottom: 50px !important; }April 7, 2016 at 4:39 pm #41747slick8088ParticipantThank you! Now i just need solutions for the other 2 problems, please. 1. I noticed that the logo won't resize when the website is loaded on a mobile phone. 2. The area to click on the logo doesn't cover the whole logo, any ideas how i can correct this?April 8, 2016 at 7:46 am #41832H.K. LatiyanParticipantYou can use this custom css:#logo img, #alt_logo img { width: 100%; padding-right: 60px; }
April 8, 2016 at 8:54 am #41860slick8088ParticipantNope, doesn't work: http://abload.de/img/unbenannt-1q9sn2.pngApril 8, 2016 at 10:51 am #41879H.K. LatiyanParticipantPlease remove the above css and try this custom css:@media (max-width:768px){ #logo img, #alt_logo img { width: 100%; padding-right: 60px; }}
April 8, 2016 at 1:24 pm #41927slick8088ParticipantSorry, but no, it still won't work like that. Logo just gets resized to smaller size. Only thing that worked until now, was: max-width:526px;April 9, 2016 at 7:29 am #42074H.K. LatiyanParticipantThe logo will get resized only in mobile not in desktop. This is because your logo is very big. There are two cases: 1) You want your logo to be very big then it will take its own space and it will cut in mobile because it cannot be adjust in mobile view. 2) You have to use the above css and resize your logo in mobile view.May 9, 2016 at 10:38 am #47173slick8088ParticipantSorry, tried everything you told me, yet the logo gets smaller (in desktop mode) every time i change: max-width:526px; Is there a solution for having such a big logo and still having it resize correctly?May 10, 2016 at 4:52 am #47282H.K. LatiyanParticipantFor the mobiles only, I gave you the media query css above it will effect only the mobile view not desktop, you can use max-width in media query and then desktop will not be effected and changes will be reflected only in mobiles. You can also try the different header styles from wp-admin->appearance->customize->header->header styles, and try standard centre style it will make the logo in one row and menu in the next. -
AuthorPosts
Viewing 14 posts - 1 through 14 (of 14 total)
- The topic ‘Wide logo automatically resized to smaller size!?’ is closed to new replies.