-
AuthorPosts
-
January 5, 2021 at 11:45 pm #1270484
I am using the Enfold wp theme to set up an ecommerce web site. I would like the product name on the product page to have a background color. What CSS code do I use in the developer settings, custom CSS class, of the special heading element.
ThanksJanuary 6, 2021 at 4:46 am #1270507Hi RosannaK,
Try going to Enfold > General Styling > Quick CSS, then add this CSS code:
#top #wrap_all .woocommerce-loop-product__title { background-color: blue; }
just change the blue color.
Best regards,
NikkoJanuary 6, 2021 at 8:51 pm #1270707Hi Nikko,
Thanks for your quick response.I did input to CSS code where you said but no changes have happened to special header. Any other ideas?
Thanks
January 7, 2021 at 2:04 am #1270731Hi RosannaK,
Can you give us a link to where this should apply? so we can try to investigate why it’s not working.
Best regards,
NikkoJanuary 7, 2021 at 8:37 pm #1270948Hi Nikko,
Here is the woo commerce product page I am currently working on. The Header in gold font is where I want to change the background color to a charcoal or black color.
Hope this helps. If you can get it to work there is one more color area I am struggling with on this page; the add to cart button. I have been able to get the background black but unsuccessful in making the font gold. Can you advise me on this as well? I am trying for color consistency with the tab color set up.Many thanks.
Rosanna
January 11, 2021 at 5:19 am #1271474Hi Rosanna,
I apologize for the delayed response.
The code I gave did work on the Enfold setup/site that I have, can you give us a link? the woocommerce product page that you are referring.
I’m just speculating but I think the problem might be caching if the CSS code is not fetched on the frontend of your site.Best regards,
NikkoJanuary 11, 2021 at 7:59 pm #1271690This reply has been marked as private.January 12, 2021 at 9:28 am #1271784Hi RosannaK,
Thanks for giving us the link and admin access.
I noticed that you were using Advanced Layout Builder, so I suggest doing the following steps:
1. Edit the Special Heading (product title), go to Advanced > Developer Settings > Custom CSS Class, then put my-product-title then save.
2. Go to Enfold > General Styling > Quick CSS, then add this CSS code:#top .my-product-title { background-color: blue; }
Just change the blue (value) in background color to any color you’d like.
Also to apply this in other products, you only need to do step 1.Best regards,
NikkoJanuary 12, 2021 at 7:25 pm #1271974This reply has been marked as private.January 13, 2021 at 8:10 am #1272056Hi RosannaK,
I have removed the spacers and replaced it with border of the same color, I replaced this code:
#top .my-product-title { background-color: blue; }
With:
#top .my-product-title { background-color: blue; border-top: 1px solid #ddb72c; border-bottom: 1px solid #ddb72c; margin: 30px 0 !important; padding: 30px 0 !important; }
However with the blue background color, the border does not look visible, I would suggest changing the background color from blue to another one.
Best regards,
NikkoJanuary 13, 2021 at 7:32 pm #1272250This reply has been marked as private.January 14, 2021 at 5:57 am #1272317Hi,
Add this to quick css:
#top form.cart .button { color: #ddb72c!important; }
Best regards,
Jordan ShannonJanuary 19, 2021 at 8:02 pm #1273822Thanks, this works fine.
January 20, 2021 at 4:29 am #1273880Hi RosannaK,
We’re happy to hear that :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘CSS code to add a background color to a special heading element’ is closed to new replies.