Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Kathryn Presner

    (@zoonini)

    The Site Logo option in Sketch is available by activating the Jetpack plugin. No need to feel silly, this dependence isn’t obvious unless you look in the theme’s readme file. We’re currently working on a better way to indicate the features that Jetpack brings to the theme, including the portfolio custom post type, which is available by activating Jetpack’s Custom Post Types module.

    Thread Starter elxinside

    (@elxinside)

    OK thanks. Now it makes sense.
    thanks a lot!!
    Awesome occupation too!!

    Moderator Kathryn Presner

    (@zoonini)

    You’re very welcome!

    Thread Starter elxinside

    (@elxinside)

    Hi, I still need a little advice. I’d like the logo image to be bigger . I’ve tried the css modifications suggested in other threads but without success.

    I’ve also read that the plugin uses the midsized image for the logo, how can I change that?
    bottom line which is the easiest way to change the logo size, without messing up the mobile view?

    Moderator Kathryn Presner

    (@zoonini)

    Could you provide a link to your site running Sketch so I can take a look?

    Thread Starter elxinside

    (@elxinside)

    Moderator Kathryn Presner

    (@zoonini)

    Try creating a child theme and adding this function to your child theme’s functions.php:

    function sketch_child_featured() {
      add_image_size( 'sketch-featured', '500', '200' );
    }
    add_action( 'after_setup_theme', 'sketch_child_featured', 11 );

    You can tweak the height and width as you like.

    Making a child theme means your changes won’t be overwritten when you update the theme. If you’re new to child themes, you can explore these guides:

    https://codex.www.ads-software.com/Child_Themes
    https://op111.net/53/

    Moderator Kathryn Presner

    (@zoonini)

    I forgot to mention that after creating a child theme and adding the new function, you’ll need to re-upload your logo.

    Thread Starter elxinside

    (@elxinside)

    I was able to do it! Thanks!
    Actually this is the complete code I used.

    function sketch_child_featured() {
    // Create a custom image size for Site Logo.
     add_image_size( 'sketch-featured', 500, 200 );
    
     // Declare theme support for Site Logo.
    add_theme_support( 'site-logo', array(
        'size' => 'sketch-featured',
    ) );
    
     }
     add_action( 'after_setup_theme', 'sketch_child_featured', 11 );
    Moderator Kathryn Presner

    (@zoonini)

    Glad you’re set!

    You shouldn’t need to re-declare theme support for the Site Logo feature since it’s already in the parent, so those extra lines shouldn’t be necessary.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘LOGO image’ is closed to new replies.