Php 如何在jem.jrox主题中将nofollow添加到菜单中?
我不需要关注www.drstanleys.com上的这些链接 我已经编辑了tpl_header.php文件并添加了以下代码Php 如何在jem.jrox主题中将nofollow添加到菜单中?,php,html,seo,nofollow,Php,Html,Seo,Nofollow,我不需要关注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">
<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>
{如果{mlogin}==1}
{else}
{/if}
但它并没有改变。我不太擅长编码。请有人帮助解决这个问题。谢谢 看来你成功了。标题处的所有链接都是nofollow,但我不建议您将nofollow标记添加到主页url
<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>
是的。我成功了。谢谢你的回复。是的,我会关注主页链接。谢谢!