Not entirely sure if this is the best spot to put this, so please move this post if necessary. I have a wordpress website and I am extremely new to building websites (in fact what I do know I have learned through google only) I have the need to create a data table on my website, I'd preferably like it to be sortable, but that is not necessary. The main thing is it needs to look clean and contained. Right now I have a sortable data table on my website for some "racing" records I want displayed for people to keep track of...but the table seems "big and bulky" if you will as you can see only a few results on the page without having to scroll across or down What I would like is a nice compact design- and if sortable I'd like the first column to renumber itself every time you sort the table. Unfortunately I need this as a plug in as I can in no way shape or form program this myself. Does anyone know of anything out there that I can use? This is the page I am referring to on my website so that you have a reference to what I am talking about and asking- it just isn't a clean and easy to read look and I don't like it. http://highperformancejunkies.com/racing-records/fastest-canadian-bolt-on-only-f-body/
DataTables was the right choice to make - it's both really simple and incredibly powerful. I'd start with: reducing the font size on the table to 0.85em; taking out the (if known) on the weight column putting a br between each of the modifications
Then you have absolutely no business trying to crap out something using trash like Wordpress. All you will get are headaches, and endless problems; and you are begging to be hacked because WP is not secure and it takes a skilled professional to get it to even minimum security. If you want the site then then invest the time to learn enough of the basics to start developing it with your own code. By the time you have built the site you will have some understanding of why most professional developers will not touch crapware like WP. Your alternative is to hire a professional to do the site. The path you are on trying to do this with WP is a road into a swamp full of alligators.
Do you know how to reduce the font size in the table? I am using the pluggin tablepress and I don't see a way to do much of anything without putting in custom coding...
That said, his site is on WP, the method of search he's opted for is clientside and not serverside. $('#tablepress-2').dataTable({"order":[],"orderClasses":false,"stripeClasses":['even','odd'],"pagingType":"simple","pageLength":100,"scrollX":true}); Code (markup): So long as the OP is backing up he can probably live with the risk of being hacked. This is clearly a hobby site and not a commercial site, paying for a developer or learning a new skill set may not be practical. I don't know tablepress but from looking at the file on your site the css has been minified - which means you really, really don't want to touch it. Have a look at your theme and see if there is an option to have "custom css" and add this to it .tablepress { font-size: .85em;} Code (markup):
That actually worked awesome! thanks- I set the table to .75 just a touch smaller. Would you know how to custom put something CSS to make the table number the first column on it's own when you sort it? For example if I sort by 1/8MPH I'd like the table to renumber itself so that we can see who is 1st, 2nd, 3rd etc... That helped me out big time though thanks for that! With regards to hacking...what is someone going to do...go hack my site and steal information on how to fix a scratch on your car? it's a hobby info site...I'm not going to pay someone to build me one- I make a couple bucks off of Sponsorships and Google adsense which covers the hosting fees and gives me a little bit of coin to put in my pocket for more work on the cars...
You could do it with javascript and determination but I don't think there's an easy way. Unfortunately they're unlikely to be after the info you give away freely but they may paint your site with offensive and threatening images/text. It's usually lame and just an annoyance. The problem is that you don't have to be a target, they mess around with well known website scripts until they find a "vulnerability" and then they go out and find sites running the script. It's all automated so it's not personal, you were just unlucky enough to tick all the boxes.