admin管理员组文章数量:1130349
I'm trying to understand what flex-width/flex-height parameter in custom-logo support does. Here, / it is said that it defines Whether to allow for a flexible height. But what exactly it means. I also went through core and tested in my theme but can not produce what it does?
I'm trying to understand what flex-width/flex-height parameter in custom-logo support does. Here, https://developer.wordpress/themes/functionality/custom-logo/ it is said that it defines Whether to allow for a flexible height. But what exactly it means. I also went through core and tested in my theme but can not produce what it does?
Share Improve this question asked Mar 25, 2018 at 3:53 AshishAshish 3494 silver badges9 bronze badges 2 |1 Answer
Reset to default 1flex-width stands for flexible width and flex-height stands for flexible height
<?php
// Previous function code here
$args = array(
'default-image' => get_template_directory_uri() . '/assets/images/default-image.jpg',
'default-text-color' => '000',
'width' => 1140,
'height' => 250,
'flex-width' => false, // Now width are fixed to 1140 px
'flex-height' => true, // Height is adjustable
);
// Later Code Here
?>
I'm trying to understand what flex-width/flex-height parameter in custom-logo support does. Here, / it is said that it defines Whether to allow for a flexible height. But what exactly it means. I also went through core and tested in my theme but can not produce what it does?
I'm trying to understand what flex-width/flex-height parameter in custom-logo support does. Here, https://developer.wordpress/themes/functionality/custom-logo/ it is said that it defines Whether to allow for a flexible height. But what exactly it means. I also went through core and tested in my theme but can not produce what it does?
Share Improve this question asked Mar 25, 2018 at 3:53 AshishAshish 3494 silver badges9 bronze badges 2-
If you are using CSS and/or advanced coding to display the header image, it might not be that consequential... usually safer to set as
true. – Jesse Nickles Commented Nov 2, 2022 at 22:06 - Related: inmotionhosting/support/edu/wordpress/… – Jesse Nickles Commented Nov 2, 2022 at 22:06
1 Answer
Reset to default 1flex-width stands for flexible width and flex-height stands for flexible height
<?php
// Previous function code here
$args = array(
'default-image' => get_template_directory_uri() . '/assets/images/default-image.jpg',
'default-text-color' => '000',
'width' => 1140,
'height' => 250,
'flex-width' => false, // Now width are fixed to 1140 px
'flex-height' => true, // Height is adjustable
);
// Later Code Here
?>
本文标签: theme developmentWhat flexwidthheight does
版权声明:本文标题:theme development - What flex-widthheight does? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749079706a2312856.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


true. – Jesse Nickles Commented Nov 2, 2022 at 22:06