1

我需要不关注 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编码方面不是那么好。请有人帮忙解决这个问题。谢谢!

4

1 回答 1

1

好像你做到了。标题处的所有链接都是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>
于 2014-02-13T10:52:39.130 回答