- This topic has 13 replies, 2 voices, and was last updated 1 year, 5 months ago by
David.
-
AuthorPosts
-
January 10, 2017 at 8:49 am #262595
Eric
Hi Tom, all,
I would like to customized the table properties (margin, border line colors…).
GP doesn’t include a way to do it? Is the “Add CSS” setting the only/straighter way to do that or have I missed something?
Also, I would like to change the space before/after my headings in the sidebar. How can I do that?
Thanks a lot
EricJanuary 10, 2017 at 9:01 am #262601Leo
StaffCustomer SupportHi Eric,
I would suggest using a plugin for creating tables. Here are a couple suggestions from Tom and another other user suggested:
https://en-ca.wordpress.org/plugins/magic-liquidizer-responsive-table/ (responsive)
https://wordpress.org/plugins/tablepress/Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 11, 2017 at 5:39 am #262912Eric
Thank you Leo. Your links may help me some day, but unless I have missed something they don’t allow me to change the border colours and margins for example.
Does GP includes this somewhere in its configuration? (if not, I’ll have to add the CSS properties by myself)
Thanks
EricJanuary 11, 2017 at 8:47 am #262971Leo
StaffCustomer SupportHi Eric,
Unfortunately GP does not currently support table customization.
I would still recommend using a plugin as it would be responsive (unless you want to write your own codes to make it responsive), and you should still be able to write CSS to modify the border margin etc for the plug in.
Hope this helps.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 11, 2017 at 1:17 pm #263115Eric
Yes it does.
Thanks a lot Leo.
Best,
EricJanuary 11, 2017 at 3:32 pm #263144Leo
StaffCustomer SupportGlad I can help!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 6, 2020 at 5:37 am #1186867Hafsa
Does GP still not submit table customization?
March 6, 2020 at 7:12 am #1187101David
StaffCustomer SupportHi there,
if you require Tables in your site you’re better off using a plugin that provides responsive ands styling controls.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 16, 2020 at 3:11 am #1582651Michael
Just looking at tables on my site.
Am I right that GP sets a thin border on tables as default?
https://github.com/tomusborne/generatepress/blob/master/assets/css/main.css#L190I think this means that the old-style table attributes don’t work. So, for example,
<table border="0">
has no effect as it is overriden and I get a thin light border showing.Does this mean I have to use CSS? I am working on migrating a large site which has many different tables with many varied presentations set with old-style table attributes. Some have borders, some don’t. They’re proper tables showing tabulated data, so I don’t want to revisit each one and apply inline CSS, and a global CSS rule to set border=”0″ will presumably also override the table setting.
Just wondering what the thinking is behind making tables have a border when the advice seems to be that GP doesn’t do tables.
Any tips appreciated.
December 16, 2020 at 7:33 am #1583107David
StaffCustomer SupportHi there,
not sure if this will work but you can try overwriting the properties with
initial
e.gtable, th, td { border: initial; }
GP + GPP is almost 7 years old now – some of the CSS for things such as tables were standard boiler plate CSS for themes back then, and for backwards compatibility it cannot be easily changed. To be honest i am not sure i have ever seen this come up before.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 17, 2020 at 6:59 am #1584525Michael
Thanks – super useful as I didn’t know about the ‘initial’ setting.
The site I’m converting has been running for more than 20 years and has thousands of pages of hand-crafted HTML. It’s quite a challenge to bring it all up-to-date!
December 17, 2020 at 7:22 am #1584547David
StaffCustomer SupportWow – i bet thats a fun job.
Let us know if that initial setting works – haven’t tested ….Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 18, 2020 at 2:10 am #1585481Michael
It is!
Yes, that initial setting seems to be doing a good job.
thanks!December 18, 2020 at 2:24 am #1585513David
StaffCustomer SupportAwesome ! Glad to hear that
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.