hj
Forum Replies Created
-
OK, I got it working the way it should – header row white font on dark blue background, data rows dark blue font on white background.
I added the following additional CSS in customise (double underscores in the class name):.tablesome__column__name {
color: #ffffff;
}https://mega.nz/file/Ye5WmKpS#P5hFFV89Aw22Vy7vO3buh08PihzjQR-EXawc0MljMWc
I note that Tablesome is tested upto v.6.6.2, and admittedly I am using v.6.7, so maybe there’s something in that. But the theme, Generate Press, seems to be highly rated and is a simple lightweight theme, so I’d be surprised if the theme was the cause of the issue.
Otherwise I have to say Tablesome is an excellent plugin with great functionality and features, and a perfect fit for our library project should it ever go live.
Well, it does seem to be happening by default!
I have to confess that I told you the wrong theme – this table is being tested on an install running WordPress 6.7 using Generate Press theme. Sorry about that.
I tried changing the header color via the Customise function – changed it to white (saved and republished), but still the dark blue header font remains.I guess I will have to add some custom CSS for this page, based around the following code seen in my browser inspector:
.tablesome__container.tablesome__container–47 .tablesome__table .tablesome__row > .tablesome__column {
font-family: Comic Sans MS;
font-size: 16px;
color: #517c9b;
text-align: left;
line-height: 20px;
font-style: normal;
letter-spacing: 0px;
text-transform: none;
font-weight: 400;
}Hmm….. Well, according to that JPG, you’ve selected a dark blue header theme, and a dark font color.
OK, so what you’re saying is …the theme choice (eg. black or dark blue background header) automatically includes a contrasting (white) font color for the header?
And then for the subsequent data rows, you select the font color according to your wishes? (most likely a dark font colour as the data rows are white or very pale grey background).
Well that’s ok, except….. when I select a dark blue for the font color, that also changes the font in the header row to dark blue. So my header is dark blue against dark blue, i.e. unreadable!
If I make the header row readable by selecting a white font color, the data rows aren’t legible…because it’s white on white.
See my problem?Name of the theme is ‘Enfold’ – https://kriesi.at
Put some screenshots up….
Standard style settings:
https://mega.nz/file/4HgABJJA#A0fgbVLfZpWLWvi1eW2jJ5LPG2SAiFpiZUUrxtf5rlE
Global style settings:
https://mega.nz/file/MDZSzTRZ#tw-cajuAQGL3huBLvm81x7LQzUA4zAD45IAQPGqOTGI
Frontend:
https://mega.nz/file/EKhzBBZQ#l2SiQcoHO7yEVu7t0_MfKPstrZ1wvLb3Afu6uRNAYKI
On the frontend you can just (!) see the white text color in the light grey cells. The white text is selected in standard settings otherwise you wouldn’t be able to read what’s in the header row.@essekia, thanks for reply.
The page is on a localhost server for development, so can’t link you to a page. I can share screenshots, but not sure how you add images to messages here…?Ah, I think I see what you mean. You have to save a ‘preference’ for the sort order first…otherwise new entries just get added in as new rows at the top of the table. (is that right?..)
I will give it a go!
Thanks
HJHi,
Many thanks for the detailed reply.
You say… : “In your specific use-case, you have tried to ‘force’ a certain image size to make them all equal even though you change the middle Column width.”
I don’t know what you mean by ‘forcing’ an image size? When I set the table up I just set a table 3 columns x 37 rows – I never set any column widths (how would you do that?), I assumed they were all equal size, and they looked equal in the admin. In fact the column widths HAVE stayed the same size, but the images in all middle columns have shrunk!
Is this because in the first row middle column the imported image was larger than the image imported in the first column? It appears the plugin has shrunk the image and not the column. But the odd thing is it has done that for ALL images placed in the middle column.
I made this table completely unaware that there was any mechanism to manually size columns or rows – is there such a mechanism?
I’m sure one solution is to manually resize all images (in Photoshop) to a standard size BEFORE placing in the table. But that’s rather long-winded!
Incidentally, the CSS fix you gave worked very nicely for the table when viewed in PORTRAIT on a mobile screen. But when the screen was rotated to LANDSCAPE view, unfortunately all the middle column images had once again shrunk in size!
It’s not a disaster by any means. And perhaps it’s about understanding more how WP DataTables handles images.
regards
HJHi Essekia,
dkore.uk/4essekia
7 screenshots – start with Step 1 and work your way through.
Or try it for yourself by going to the root URL.HJ
Hello,
Thanks for your reply. The conditional logic approach is certainly interesting, might be able to do something with that.
I had thought of something like that as a different approach to my original ‘dropdown-loads-form’ idea. The approach would be a dropdown which loads specific fields into a form depending on option selected – or alternatively hides certain fields from a full gammut of fields which covers all form scenarios. i.e. you might start with all the fields, but selecting MAPS in a dropdown might hide certain fields such as Author and ISBN No. Not sure if that would work or not, but it was a thought.
The only problem with such an approach , and even your conditional logic approach, is that you only have one form, albeit with variations. But upon SUBMIT, I imagine the content could only be sent to one data table…and there you have a problem with matching of fields. Unless that ‘send’ action could also be conditional..?
All interesting stuff!
In the short term I’ve landed on the idea of using tabs to hold a range of forms on a single page. Not quite as elegant a solution, but workable!
regards
HJWell, looking at the features list for the plugin, it appears that some of your needs might be met with the Pro version?…..
- Allow users to edit only their own data
- Show users only their own data on frontend
- Register users from WordPress frontend (action)
- User frontend post submission (action)
Have you tried the Pro version free 7 day trial?
You might also look at the plugin docs…
https://tablesomewp.com/docs/docs-for-tablesome-1-0/
At the bottom of section 1. you’ll see some advice on how to Filter Table Data based on User and Time.
Sorry I can’t give you a precise answer, I’m new to Tablesome myself!
HJ
Just a follow-up…. the CSS mods you suggested as a temporary fix work very nicely, thank you.
HJHi,
I’m not Tablesome support…..but sounds a bit like what my use case. I’m collecting form entries which include an author name (and other details, title, publication date etc.). My form field names are exactly the same as my column headers in Tablesome.
All my submissions are shown by Tablesome, and of course the ‘author’ column can be sorted in ascending or descending order (alphabetically).If I want to see what publications have been submitted for a particular author, I just use the search box and put the author name in – it then lists publications related to that author.
Maybe I’m missing something with your use case, though?
HJOK, thank you for clarification. Perhaps it might be best to try it under the free Pro trial, first. I think I’ll do that.
HJHi,
Many thanks for that explanation! I may try the fix and see what effect it has (and grow my knowledge of CSS!)
I dipped back into the admin for this table and can confirm that when the table was made the cell widths were not adjusted and that they all looked the same size (visually at least).
Hope you have success in squashing the bug!
regards
HJ