创建一个wordpress网站,并在widget部分中得到这个...似乎无法获得任何网址代码!
这是目前的代码;
[one_third]
<a class="home-buttons"><i class="icon mortgage-calculator-icon"></i>Mortgage Calculator</a>
<a class="home-buttons"><i class="icon newsletter-icon"></i>Help to Buy</a>
<a class="home-buttons"><i class="icon newsletter-icon"></i>Meet the Team</a>
<a class="home-buttons"><i class="icon newsletter-icon"></i>Contractor Mortgages</a>
<a class="home-buttons"><i class="icon newsletter-icon"></i>FactSheets</a>
[/one_third]
如何添加网址功能,以便每个按钮都链接到网址
先谢谢大家。
答案 0 :(得分:1)
锚点链接通常包含一个包含URL的href属性,例如:
<a href="https://www.google.com"></a>
答案 1 :(得分:0)
这将解决问题,添加href
元素。通过您希望的任何网址更改home.html
。
[one_third]
<a class="home-buttons" href="home.html"><i class="icon mortgage-calculator-icon"></i>Mortgage Calculator</a>
<a class="home-buttons" href="home.html"><i class="icon newsletter-icon"></i>Help to Buy</a>
<a class="home-buttons" href="home.html"><i class="icon newsletter-icon"></i>Meet the Team</a>
<a class="home-buttons" href="home.html"><i class="icon newsletter-icon"></i>Contractor Mortgages</a>
<a class="home-buttons" href="home.html"><i class="icon newsletter-icon"></i>FactSheets</a>
[/one_third]