html - 更改 WooCommerce 购物车页面中的运输方式费率值字体粗细

标签 html css wordpress woocommerce cart

如何从 WooCommerce 购物车页面的运费中删除粗体字体?我不想用粗体文本引起人们对运费的过多关注,因此我希望在那里有常规的字体粗细。

请注意,我在下面将“运输”重命名为“交付” enter image description here

更新: 添加下面的 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>

最佳答案

只需检查运费值并获取运费值的类别即可。例如,类名称为:.shipping_fee。因此,只需将以下 css 放入您的附加 CSS 或自定义 CSS 文件中即可。

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

关于html - 更改 WooCommerce 购物车页面中的运输方式费率值字体粗细,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55290121/

相关文章:

javascript - 阻止浏览器后退按钮

wordpress - 错误 : Only variable references should be returned by reference in wp-includes/post.

html - &lt;meta http-equiv ="X-UA-Compatible"content ="IE=EmulateIE7"/> 它应该放在 <head> 的什么地方才能在 IE8 中正确地将文档呈现为 IE7?

具有不同测试结果的 HTML 电子邮件开发

jquery - 鼠标悬停时可展开的横幅

wordpress - 如何在wp_head中加入替代,图标和 list 链接?

css - 在 Divi Wordpress 主题的 slider 上移动按钮的 CSS 代码是什么?

iphone - CSS:iPhone/iPad Safari 在元素周围添加额外的边距或填充?

css 按钮修复输入提交按钮

html - 使 css-doodle 响应媒体查询