- This topic has 20 replies, 3 voices, and was last updated 3 years, 10 months ago by Leo.
-
AuthorPosts
-
June 14, 2020 at 8:12 am #1327517William
I have been trying to change the background color and the table and cell border colors inside WordPress.
Is there CSS I can use to do this? I have tried, but seemingly can’t get any of this to change.
I’d like to make the background color darker and the the border color a more pronounced black.
Thanks in advance if anyone has any tips on this.
June 14, 2020 at 12:26 pm #1327702LeoStaffCustomer SupportHi there,
Where can I see that table?
Let me know 🙂
June 14, 2020 at 12:55 pm #1327758WilliamHey Leo I published the post so you can see it.
June 14, 2020 at 2:36 pm #1327825LeoStaffCustomer SupportTry this:
.wp-block-table table { background-color: #000; } table, th, td { border: 1px solid #ffffff; }
June 15, 2020 at 5:37 am #1328422WilliamHi Leo –
Thank you for the CSS code, unfortunately it doesn’t seem to have done the trick. I’m guessing wordpress simply doesn’t allow their tables to be edited?
Thank you.
June 15, 2020 at 7:10 am #1328554DavidStaffCustomer SupportHi there,
it is possible to change the colors. That link your provided results in a page not found. If you want to fix that so we can see the table and add the CSS Leo provided we can take a look at the issue.
June 15, 2020 at 7:31 am #1328570WilliamHi David –
Thank you! Here is the page: https://glitchmind.com/reddit-battlestations/
June 15, 2020 at 7:55 am #1328733DavidStaffCustomer SupportCan you add the CSS Leo provided and clear your autoptimize cache.
June 15, 2020 at 8:05 am #1328741WilliamHi David –
I did that, and seems to be no change. Maybe I’m applying the CSS in the wrong space. I’m adding the CSS in the back end of the WordPress editor post area. Specifically, in the “advanced” section. Here is a screenshot: https://imgur.com/a/yNWS1a8
Should I be applying this CSS differently?
Thanks again.
June 15, 2020 at 8:09 am #1328748DavidStaffCustomer SupportThat field is for adding custom CSS classes.
Add Leo’s CSS to Customizer > Additional CSS
June 15, 2020 at 8:19 am #1328762WilliamThanks David – If I am applying the CSS to just one specific post, is there a best approach to getting this implemented? Currently I’m on the published article, then going to the “Customize” button and from there clicking “Additional CSS” – will that apply it just to the article itself?
Thank you.
June 15, 2020 at 8:42 am #1328820DavidStaffCustomer SupportIn that case the field you were using before ( as you showed here ).
Give it an Additional CSS class of:
dark-table
Then you can style it specifically with this CSS:.dark-table.wp-block-table table { background-color: #000; } .dark-table table, .dark-table th, .dark-table td { border: 1px solid #ffffff; }
June 15, 2020 at 8:57 am #1328832WilliamThanks David. So put the dark-table CSS class here? https://imgur.com/a/8mSXOB8 then publish the post and once live, add this CSS using the “Customize” > “Additional CSS” on the front-end?
.dark-table.wp-block-table table {
background-color: #000;
}
.dark-table table, .dark-table th, .dark-table td {
border: 1px solid #ffffff;
}June 15, 2020 at 10:33 am #1328945LeoStaffCustomer SupportLooks correct. Have you tried it?
June 15, 2020 at 10:36 am #1328949WilliamHey Leo –
Yes, I have tried it. No luck yet. I have the dark-table css class in the back end and then in the front end I have I added the CSS code above.
I could be doing something wrong: https://glitchmind.com/reddit-battlestations/
-
AuthorPosts
- You must be logged in to reply to this topic.