简体   繁体   English

删除WordPress主题中的标题图像会有什么后果?

[英]What are the consequences of removing the header image in a WordPress theme?

I'm working on my first WordPress theme. 我正在研究我的第一个WordPress主题。

The client doesn't seem to want a header image on every page, so I was just going to remove the <img> tag for the header image, but I want to double check first, what kind of impact will that have? 客户端似乎并不希望在每个页面上都显示标题图像,所以我只是要删除标题图像的<img>标记,但是我想首先仔细检查一下,这会产生什么样的影响?

For example, does it affect certain widgets? 例如,它会影响某些小部件吗?

它真的不应该影响任何事情。

It all depends on how the theme was coded. 这完全取决于主题的编码方式。 Generally it shouldn't have any effect but removing the tag could shift some of the other elements. 通常,它应该没有任何作用,但是删除标签可能会使其他一些元素转移。

Create a backup first and then try it. 首先创建一个备份,然后再尝试。 if something goes wrong you can replace the backup. 如果出现问题,您可以更换备份。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM