- This topic has 1 reply, 2 voices, and was last updated 3 years, 4 months ago by
Sebastian.
Author | Posts |
---|---|
Simon
November 28, 2021 at 9:25 pm
|
Hi I really want to be able to style a Gutenberg table as a Pros and Cons table which I can then cut and paste to other posts and enter new data etc. |
Sebastian
November 28, 2021 at 10:04 pm
|
Hey Simon, No problem at all. All of the styles you create with Microthemer are added to folders – you can manage those from the top left of the interface. Please see the folders video which explains how to delete things. Styling is global by default, but you can ensure that your selectors only target a single page using the page-id modifier shown in this video. However, if you want to use the table on other pages, that option isn’t suitable. So instead, I recommend adding a class to the table in Gutenberg. You can do that from the Block options. Go to Advanced > Additional CSS class(es). Add something like this:
Then, when you select the element, check the list of selector suggestions in the top toolbar. You can search it to filter the options. So if you start typing “pros” the number of options will reduce. The option you want if selecting the whole table would be:
The option you want when selecting the table headings or cells will have that class at the beginning, followed by something else e.g.
Or
By choosing selectors that start with your custom class, you limit the scope of your CSS to only the tables you want. And if you add that table with the custom class to future posts, the styling will apply automatically. I hope that helps. And that my advice on AppSumo for styling columns a particular way was easy enough to follow. Let me know if not! Cheers, P.S. you might find the history panel useful for rolling back sometimes 🙂 |