Question: How can we customize custom logo dimension in child theme?
Answer: Putting following code/hook in child theme functions.php, logo dimension could be customized.
If we want to add width=500 and height=200 for logo, we can use below filter.
1 2 3 4 5 6 7 | add_action( 'after_setup_theme' , 'child_theme_logo_customize' , 99 ); function child_theme_logo_customize() { add_theme_support( 'custom-logo' , array ( 'width' => 500, 'height' => 200, ) ); } |
No comments:
Post a Comment