Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 更改配送方式费率值字体重量(在购物车页面中)_Html_Css_Wordpress_Woocommerce_Cart - Fatal编程技术网

Html 更改配送方式费率值字体重量(在购物车页面中)

Html 更改配送方式费率值字体重量(在购物车页面中),html,css,wordpress,woocommerce,cart,Html,Css,Wordpress,Woocommerce,Cart,如何从WooCommerce购物车页面的运费中删除粗体字体?我不想用粗体字引起太多的注意,所以我希望有固定的字体大小 请注意,我在下面将“Shipping”重命名为“Delivery” 更新: 添加下面的html代码以回答评论部分中的问题 <tr class="woocommerce-shipping-totals shipping"> <th>Delivery</th> <td data-title="Delivery"> <ul

如何从WooCommerce购物车页面的运费中删除粗体字体?我不想用粗体字引起太多的注意,所以我希望有固定的字体大小

请注意,我在下面将“Shipping”重命名为“Delivery”

更新: 添加下面的html代码以回答评论部分中的问题

<tr class="woocommerce-shipping-totals shipping">
<th>Delivery</th>
<td data-title="Delivery">
    <ul id="ship_method" class="woocommerce-ship-type">
        <li> 
        class="ship_method"/><label for="ship_method"> <span class="woocommerce_totals totals"><span class="woocommerce_curr_sym">&#36;</span>300.00</span></label>                 </li>
    </ul>
</td>

传送
  • class=“ship#U方法”/>和#36;300.00

只需检查运费值,并对运费值进行分类即可。例如,类名为:.shipping\u fee。因此,只需在附加css或自定义css文件中添加以下css即可

.shipping_fee {
 font-weight: normal !important;
}

根据您的问题进行编辑第二次编辑(更改生成的html输出)

您可以使用以下CCS规则添加到主题的
style.css
文件(用于购物车)中:

.cart抵押品#ship#u方法标签,
.cart抵押品#装运方法标签跨度{
字体大小:正常!重要;
}
对于购物车和结账页面,请使用:

#装运方法标签,
#ship_方法标签跨度{
字体大小:正常!重要;
}
它应该会起作用


原始答案(适用于默认html结构)

您可以使用以下CCS规则添加到主题的
style.css
文件(用于购物车)中:

.cart抵押品#装运方法标签,
.购物车抵押品#装运方法标签跨度{
字体大小:正常!重要;
}
对于购物车和结账页面,请使用:

#装运方法标签,
#装运方法标签跨度{
字体大小:正常!重要;
}

它应该可以工作。

请参见上面的主要问题中的html代码。您以错误的方式编辑了生成的html,请参见:
  • class=“ship\u method”/>
  • …我也更新了我的答案。完成了,对此表示抱歉。