實用的 WordPress ICP 備案許可管理器

如何給 WooCommerce 我的賬戶頁面,導航選單進行美化

WooCommerce 我的賬戶頁面導航美化樣式 CSS 程式碼

如果您的主題在其設定中有一個 「自定義 CSS」 框,那麼您可以把它放在那裡。在 Divi 上,我只是將它放在頁面的自定義 CSS 中,以便它只載入到實際的 「我的帳戶」 頁面上。

/* Change WC Acct Page Column Widths */ @media only screen and (min-width: 769px) {   .woocommerce-account .woocommerce-MyAccount-navigation {     width: 22%;   }   .woocommerce-account .woocommerce-MyAccount-content {      width: 75%;   } } /* Style WC Account Endpoint Links */ nav.woocommerce-MyAccount-navigation ul {   list-style-type: none;   padding-left: 0;   max-width:200px;   font-size: 17px;   line-height: 26px; } nav.woocommerce-MyAccount-navigation ul li {   padding: 8px 20px;   background-color: rgba(0,0,0,0.05);   border-bottom: 1px solid rgba(0,0,0,0.05); } nav.woocommerce-MyAccount-navigation ul li.is-active {   background-color: rgba(0,0,0,0.1); } nav.woocommerce-MyAccount-navigation ul li.is-active a {   color: rgba(0,0,0,0.8); cursor: default; } nav.woocommerce-MyAccount-navigation ul li.is-active:after {   content: "";   height: 0;   width: 0;   border-top: 20px solid transparent;   border-left: 14px solid rgba(0,0,0,0.1);   border-bottom: 20px solid transparent;   float: right;   margin-right: -34px;   margin-top: -7px; } nav.woocommerce-MyAccount-navigation ul li:not(.is-active):hover {   background-color: rgba(0,0,0,0.07); } nav.woocommerce-MyAccount-navigation ul li:not(.is-active):hover:after {    content: "";   height: 0;   width: 0;   border-top: 20px solid transparent;   border-left: 14px solid rgba(0,0,0,0.07);   border-bottom: 20px solid transparent;   float: right;   margin-right: -34px;   margin-top: -7px; }

 

文章沒看懂?程式碼不會用?需要幫助您可以

薇曉朵 的頭像