Viewing 4 replies - 1 through 4 (of 4 total)
  • First of all, don’t edit the theme files directly, otherwise your changes will be overwritten whenever the theme is updated.

    An easy way to add custom CSS is to install the Jetpack plugin and activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS.

    As alternatives, you could either install a standalone custom CSS plugin, or create a child theme.

    Once you’re ready to roll with your CSS, here’s the rule I’d add:

    @media screen and (max-width: 360px) {
      #branding img {
        max-height: 100px;
      }
    }

    This should overwrite the max-height set on the logo by the theme. Adjust as required!

    Thread Starter catwingz

    (@catwingz)

    Thanks Sarah, custom CSS is already in use.

    This solves the logo size issue nicely. The text is still an issue though. Any suggestions are welcome.

    My latest failed attempt is this—

    #branding #site-details h1#site-title {
    color: #0085bd; important!
    }

    Looking good!

    The reason your code isn’t working as expected is because it’s targeting the #site-title h1 element itself, but this element has a link (an a element) inside it, and the rule for that link takes precedent. If you target the a element *inside* the h1, it should work as expected.

    This should get everything sorted right out:

    #branding #site-details h1#site-title a {
      color: #0085bd;
    }
    Thread Starter catwingz

    (@catwingz)

    Beautiful. Thank you. Using that as my guide I was also able to take care of the tagline. Now all I need to do is change the font and it will be a happy ending. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Size and color of logo / site title in mobile’ is closed to new replies.