Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将 wordpress 用于网站,而我要做的只是链接到一般标题部分中的外部网站。
具体来说,我在“设置/常规页眉”部分创建它,并在页脚框中输入我的 HTML。
我的网站的实际 html 有点复杂,但我添加了一个非常简单的文本链接来演示这个问题。这是代码:
<a href="http://www.google.com"> Google </a>
基本上这个链接什么都不做。使用通用标题部分是否有限制?我还能把这段代码放在哪里让它工作?任何帮助都很棒,谢谢!
所以事实证明,上面的代码中有一些随机的 div,一旦删除,一切都按预期工作!