Home › Forums › Business Club › Custom logo in child theme
- This topic is empty.
-
AuthorPosts
-
April 13, 2017 at 9:59 pm #584AnonymousInactive
Hi, i got it now with modifing the functions.php
// Enable support for custom logo. add_theme_support( 'custom-logo', array( 'height' => 150, 'width' => 450, 'flex-height' => true, 'flex‐width' => true,
Hope that will not break with a update. Or can i use this with custom css, too?
April 14, 2017 at 5:38 am #586Axle SupportModeratorHello,
If you have added the changes on the child theme, your changes will not be erased on theme update.Regards.
April 14, 2017 at 8:55 am #590AnonymousInactiveOK thank you
regards
DirkApril 16, 2017 at 4:40 am #598Axle SupportModeratorHello,
If you like our theme and the support provided, can you please rate your theme on https://wordpress.org/support/theme/corporate-key/reviews/#new-post
Thank you.
June 9, 2017 at 5:26 am #930AnonymousInactiveHi,
i tried to put this code in the CSS but when I go to import my logo into site identity, it still crops my logo into a 95x95px square. Should I import my logo somewhere else?
Thanks in advance for your help
June 9, 2017 at 5:51 am #931Axle SupportModeratorHello,
Please add the below given CSS to Dashboard -> Appearance -> Customize -> Additional CSS.custom-logo-link { max-width: 100%; }
Also try and regenerate your images with thumbnail regenerate plugin https://wordpress.org/plugins/regenerate-thumbnails/
Regards.
July 26, 2017 at 9:27 pm #1203AnonymousInactiveHi,
I tried to put code in the CSS but when I go to import my logo into site identity, it still crops my logo into a 95x95px square. I tried to put this code in the functions.php in my child theme -it doesn’t work.
// Enable support for custom logo. add_theme_support( 'custom-logo', array( 'width' => 500, 'height' => 95, ) );
If i change functions.php in main theme to
// Enable support for custom logo. add_theme_support( 'custom-logo', array( 'width' => 500, 'height' => 95, ) );
and my image size is 217×37 I can’t crope it in my size. What I made wrong?
July 27, 2017 at 3:49 am #1204Axle SupportModeratorWhen you put following PHP code in child theme functions.php, logo dimension could be customized.
add_action( 'after_setup_theme', 'child_theme_logo_customize', 99 ); function child_theme_logo_customize() { add_theme_support( 'custom-logo', array( 'width' => 125, 'height' => 125, ) ); }
You may need to add some CSS for changed logo size.
May 11, 2019 at 12:50 pm #11853AnonymousInactiveBerbicara mengenai daftar situs poker online resmi terpercaya 2019 maka website pilihan yang sangat tepat untuk kalian semua yakni begabung di situspoker.online.
May 12, 2019 at 2:56 pm #11871Axle SupportModeratorHi @Dirks,
You can skip the logo crop and use any size you want.
-
AuthorPosts
- The topic ‘Custom logo in child theme’ is closed to new replies.