WordPress主题制作

  1. 主页
  2. 文档
  3. WordPress主题制作
  4. theme-setup
  5. 定制logo:add_theme_support – custom-logo

定制logo:add_theme_support – custom-logo

官方相关文档:
 
 
 

Custom logo template tags

Custom logo template tags #Custom logo template tags
 
To manage displaying a custom logo in the front-end, these three template tags can be used:
 
get_custom_logo() – Returns markup for a custom logo.
the_custom_logo() – Displays markup for a custom logo.
has_custom_logo() – Returns a boolean true/false, whether a custom logo is set or not.

 
 
 
这篇文章对您有用吗?

我们要如何帮助您?