如何将URL链接添加到此<a class=""></a>

时间:2014-01-23 11:15:45

标签: javascript css wordpress class widget

创建一个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]

如何添加网址功能,以便每个按钮都链接到网址

先谢谢大家。

2 个答案:

答案 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]