修改WooCommerce Mini Cart产品名称时出现问题

时间:2019-03-29 19:36:47

标签: wordpress woocommerce

购物车产品名称显示产品的可单击超链接。 参见下面的屏幕快照和chrome控制台,它在产品名称的href上还附加了网址。

我尝试修改functions.php

<span class="woocommerce-mini-cart-item__name">
    <a href="https://covergifts.com/shop/fashion-accessories/socks/happy-japan-south-korea-harajuku-style-high-street-funny-socks-cotton-alphabet-womens-socks-college-wind/?attribute_pa_size=all-code&amp;attribute_pa_color=ywmx-french-fries">
    &lt;a href="https://covergifts.com/shop/fashion-accessories/socks/happy-japan-south-korea-harajuku-style-high-street-funny-socks-cotton-alphabet-womens-socks-college-wind/?attribute_pa_size=all-code&amp;attribute_pa_color=ywmx-french-fries"&gt;Funny Socks Cotton Alphabet Women's Socks College&lt;/a&gt;                                 
    </a>
</span>

屏幕截图1 https://imgur.com/a/Kl4PaJO
屏幕截图2 https://imgur.com/a/1GXljB0

0 个答案:

没有答案