powerbuoy / sleek-custom-logo
集成到 the_custom_logo() 并对其进行了改进。
v2.2.1
2020-09-29 17:27 UTC
README
集成到 the_custom_logo()
并渲染以下之一
- 在管理界面中选定的自定义徽标
- 在
dist/assets/site-logo.svg
中找到的 SVG 徽标 - 在
dist/assets/site-logo.png
中找到的 PNG 徽标 - 仅输出站点名称
还允许向 get_custom_logo()
传递一个参数数组;the_custom_logo(['inline_svg' => true, 'append' => '-small'])
将渲染为内联 SVG 的 dist/assets/site-logo-small.svg
。
最后,它还将链接类名从 custom-logo-link
更改为 site-logo
。
主题支持
无
钩子
无
函数
the_custom_logo($args)
这是原生 WordPress 的 the_custom_logo()
,但我们添加了 $args
参数,这使得您可以选择 inline_svg
(true
/false
) 和 append
(String
以附加到 site-logo
文件名)。
类
无