gpt4 book ai didi

css - wordpress 的 WooCommerce 字体颜色

转载 作者:太空宇宙 更新时间:2023-11-04 10:30:55 25 4
gpt4 key购买 nike

所以我是第一次使用 woo commerce,在尝试更改我正在处理的网站的购物车和结帐页面上的字体颜色(和大小)时遇到了一些问题。我用过 Firebug ,但是我没有得到任何改变。我敢肯定这是一个简单的修复,但它让我很受打击。

请帮忙

body {
background-image: none;
}

.no-featured-image-post {
padding-left: 0px !important;
}

.thumbnail-article img, .gallery-item img,
.entry-content img, .comments img,
.album-widget figure figcaption img,
.post-article.single-post .content-album-article .left figure figcaption img, .albums-container article figure figcaption img,
.videos-container article figure figcaption img,
.photos-container article figure figcaption img,
.artists-container article figure figcaption img,
.ablums-posts-right article .left figure figcaption img,
.single-event-widget figure figcaption img,
figure.event figcaption img,
.events-container article figure figcaption img,
article.event-article figure figcaption img,
.artist-widget figure figcaption img,
.top-events-albums .events-albums ul li figure figcaption > img,
.event-widget figure figcaption img, .event-widget-countdown figure figcaption img,
.top-albums-widget article figure figcaption img,
.top-rated-albums-widget article figure figcaption img,
.photos-container article figure figcaption img,
.products > li img,
.images .woocommerce-main-image img,
.images .thumbnails a img,
.widget_shopping_cart_content .product_list_widget li a img,
.woocommerce .shop_table.cart .product-thumbnail > a img,
.ablums-posts-bottom article .left figure figcaption img {
height: auto;
}
.awaiting-moderation {
font-style: italic;
}

.form-allowed-tags {
display: none;
}

.post-article .content-article h1, .post-article .content-event-article h1 {
margin-bottom: 20px;
}

.event-details .details p span {
min-width: 90px;
}

.events-container article figure figcaption .min-info h4 {
color: #fff;
}

article iframe {
width:100%;
}

.menu {
z-index: 99;
}

body.admin-bar {
padding-top: 0;
}

.products > li .product-container .onsale {
position: absolute;
z-index: 3;
border-radius: 50%;
background: rgba(142, 68, 173, 0.8);
display: block;
width: 40px;
height: 40px;
text-align: center;
line-height: 40px;
color: #000000;
font-family: 'Roboto';
font-weight: 500;
font-size: 15px;
margin: 15px 0 0 15px;
}

.wpb_row {
margin-left: 0px !important;
margin-right: 0px !important;
}

.wpb_column > .wpb_wrapper .underline-bg {
margin-bottom: 20px !important;
}

.widget .tagcloud a {
padding: 0px 8px;
}

.wp-caption,
.wp-caption-text,
.sticky,
.gallery-caption,
.bypostauthor,
.aligncenter { }

.minimal-player .name p {
margin-bottom: 0px !important;
}

.format-audio figcaption > div,
.format-audio figcaption > p
{
display:none !important;
}

.light-layout .dropcap {
color: #000000;
}

.woocommerce-tabs .entry-content .comment-respond .comment-form p textarea {
display: inline-block;
border-color: black;
}

body.light-layout .woocommerce #payment .payment_box, body.light-layout .make-event #payment .payment_box {

padding-bottom: 20px;
border-color: black;
}

body.light-layout .woocommerce #payment .payment_box input[type=text], body.light-layout .make-event #payment .payment_box input[type=text],
body.light-layout .woocommerce #payment .payment_box p, body.light-layout .make-event #payment .payment_box p {
margin-bottom: 0;
padding-bottom: 0;
font: #000;
border-color: black;
}

最佳答案

您正在使用“字体颜色:#000000;”在你的最后一个选择器上,那是无效的 CSS。

如果您需要更改字体颜色,只需使用颜色:#000; (也不需要六个零,因为它是黑色的)

此外,您还可以使用服务来检查您的 css 错误 http://csslint.net/

.woocommerce .shop_table.cart .product-thumbnail .product-info a, .make-event .shop_table.cart .product-thumbnail .product-info a,
.woocommerce .shop_table.cart .product-price .amount, .make-event .shop_table.cart .product-price .amount, .woocommerce .shop_table.cart .product-subtotal .amount, .make-event .shop_table.cart .product-subtotal .amount,
.woocommerce .shop_table tr th, .make-event .shop_table tr th, .woocommerce .shop_table tr td, .make-event .shop_table tr td,
.woocommerce .cart-totals-container .cart_totals table th, .make-event .cart-totals-container .cart_totals table th, .woocommerce .cart-totals-container .cart_totals table td, .make-event .cart-totals-container .cart_totals table td,
.woocommerce .cart-totals-container .cart_totals table th strong, .make-event .cart-totals-container .cart_totals table th strong, .woocommerce .cart-totals-container .cart_totals table td strong, .make-event .cart-totals-container .cart_totals table td strong,
#customer_login h2,
body.light-layout .woocommerce .cart-totals-container > button,
body.light-layout .woocommerce .shop_table.cart thead th, body.light-layout .make-event .shop_table.cart thead th {
color: #000 !important;
}

将它添加到您的 CSS 文件的底部,它应该覆盖购物车页面上的所有内容。

不过,我猜您可以更改主题中的字体颜色。那可能是 Canvas 主题吗?转到主题选项或外观 > 主题选项并查找版式设置,它应该允许您更改字体类型和颜色。

关于css - wordpress 的 WooCommerce 字体颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36500143/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com