
wordpress建站代码如何获取logo和缩略图,下面web建站小编给大家介绍一下代码!
获取Logo标签
// 获取logo和主页的连接
the_custom_logo();
// 获得自定义logo output "string"
$logo = get_custom_logo();
// 根据条件获取logo
if ( has_custom_logo()) {
$logo = get_custom_logo();
}
// 使用'get_custom_logo'将logo打包在div中
add_filter( "get_custom_logo", function( $html ) {
return ''. $html .'';
} );
获取缩略图url
get_the_post_thumbnail_url()
上面是“wordpress建站代码如何获取logo和缩略图”的全面内容,想了解更多关于 wordpress 内容,请继续关注web建站教程。
当前网址:https://m.ipkd.cn/webs_2613.html
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

Wetab官网:一款免费ChatGPT新标签页,内置丰富小组件
美图日记APP
茶杯狐官网:一个影视资源聚合搜索引擎,实时聚合全网优质影视资源
Excel表格复制到Word后与原来格式一样
3d文字动画效果