• Resolved Golem24

    (@golem24)


    Hello i use the jet pack site logo for your theme

    but if i set the logo size in the css of the theme the picture looks ugly even if its 3400×1200
    the size is always:

    <div class="site-branding">
    			<a href="https://kaizen-arena.ch/" class="site-logo-link" rel="home"><img width="300" height="108" src="https://kaizen-arena.ch/wp-content/uploads/2015/02/neu-logo2-300x108.png" class="site-logo attachment-medium" alt="neu logo2" data-size="medium" /></a>
    
    		</div><!-- .site-branding -->

    and if i change it in css like that

    .site-logo {
      height: 180px;
      width: 510px;
    }

    it looks then ugly

    can someone help me out

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Golem24 – Since “ugly” is a pretty subjective term I am going to assume you mean pixelated by being stretched out. The issue here is that the logo image source being used is a WordPress generated version that is only 300 pixels wide, so when you stretch it to 510 pixels wide you are stretching it almost 2x it’s natural width.

    https://c.pmgr.mn/1biCm

    When selecting the logo do you get an “image size” option at all? or can you edit the URL of the logo and just remove the “-300×108” from the file name?

    Thread Starter Golem24

    (@golem24)

    i can just choose a logo or delete the logo on the theme modify page

    Thread Starter Golem24

    (@golem24)

    i cant change the url, it generates automaticly that part with: -300×108 normali that is not in the url

    Hi Golem24 – Looks like after looking at the theme code this is something that requires changing code to change.

    If you look in the themes inc folder there is a file jetpack.php

    https://themes.trac.www.ads-software.com/browser/aviator/0.9.4/inc/jetpack.php#L17

    In this file you see ‘size’ => ‘medium’ and that just needs changed to ‘size’ => ‘full’ if you want to use the full size image. Simply change medium to full, and then use CSS to size your logo however big/small you want and you will not see it be pixelated.

    Hope this helps!

    Thread Starter Golem24

    (@golem24)

    thank you very much you made my day ??

    it worked

    Glad to hear it! ?? Just remember if you ever update your theme in the future it may overwrite that change and you may need to do it again.

    This helped so much! Thank you!!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Jet pack Logo size’ is closed to new replies.