我需要不 - 请访问www.drstanleys.com中的这些链接。
我编辑了tpl_header.php文件并添加了以下代码。
<div id="jroxViewCart" class="jroxViewCart"><a rel="nofollow" href="{base_url}cart">{cart_items}</a></div>
<div id="jroxTopLinks" class="jroxTopLinks">
<span id="jroxTopHomePage"><a href="{public_url}" rel="nofollow">{lang_home} </a></span>
{if {mlogin} == 1}
<span id="jroxTopMyAccount"><a href="{members_login_url}{members_route}" rel="nofollow">{lang_my_account}</a></span>
<span id="jroxTopLogout"><a href="{base_url}logout" rel="nofollow">{lang_logout}</a></span>
{else}
<span id="jroxTopLogin"><a href="{members_login_url_link}login" rel="nofollow">{lang_login}</a></span>
<span id="jroxTopRegister"><a href="{checkout_url_link}registration" rel="nofollow">{lang_register}</a></span>
{/if}
<span id="jroxTopCheckout"><a href="{base_url}cart" rel="nofollow">{lang_checkout}</a></span>
</div>
仍然没有改变。我在codeignitor编码方面不是很好。有人请帮忙解决这个问题。谢谢!!
答案 0 :(得分:2)
好像你做到了。标题中的所有链接都是nofollow,但我不建议您将nofollow标记添加到主页网址。
<div id="jroxViewCart" class="jroxViewCart"><a rel="nofollow" href="http://www.drstanleys.com/cart">no items in your cart</a></div>
<div id="jroxTopLinks" class="jroxTopLinks">
<span id="jroxTopHomePage"><a rel="nofollow" href="http://www.drstanleys.com/">home</a></span>
<span id="jroxTopLogin"><a rel="nofollow" href="http://www.drstanleys.com/login">login</a></span>
<span id="jroxTopRegister"><a rel="nofollow" href="http://www.drstanleys.com/registration">register</a></span>
<span id="jroxTopCheckout"><a rel="nofollow" href="http://www.drstanleys.com/cart">checkout</a></span>