我试图了解自定义徽标支持中的flex width/flex height参数的作用。在这里https://developer.wordpress.org/themes/functionality/custom-logo/ 据说它定义了是否允许灵活的高度。但这到底意味着什么。我也在我的主题中进行了核心测试,但无法生成它的功能?
What flex-width/height does?
1 个回复
SO网友:Chaudhari Akash
弯曲宽度支架for flexible width 和flex height代表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
?>
结束