How to customize? (beginner-level instructions)
-
I just installed your plugin and love it! I would like to do some customization but am completely new to how to do this. Could you provide some more step-by-step directions for how to customize. For example…
#1 JavaScript customization
In a different thread you wrote:If you’re able to add JavaScript to your theme, you can do that. Any and all DataTables-enhanced tables can be modified by using the DataTables API.
For instance, to disable paging, add a JavaScript to your theme that looks like this:
jQuery(window).load(function () {
jQuery(‘#igsv-MY_TABLE_KEY’).dataTable().api().page.len(-1).draw();
});- How do I know if I am able to add JavaScript to my theme? And how would I go about adding it?
- In which file would I add the code that you wrote out? I have the following files in my plugin editor:
- If I have to create a new file how do I do that?
inline-google-spreadsheet-viewer/igsv-datatables.js (inactive)
inline-google-spreadsheet-viewer/inline-gdocs-viewer.php (active)
inline-google-spreadsheet-viewer/igsv-gvizcharts.js (inactive)#2 CSS Customization
I would like to change the column widths, remove the gray background from the table, remove the default buttons, etc. which I *think* should be done with css. You wrote that:Yes, if you’re able to change your theme’s style sheet. Use the
igsv-table
class from your style sheets to target the plugin’s<table>
element.- Where is the .css file? I don’t see one in the plugin editor and the css file for my theme doesn’t contain any mention of igsv-table.
- Do I have to manually create a css file instead of editing an existing one, and if so, how do I do that?
Here is my website if it helps to see what I’m referring to: https://www.whoswhoindigitalhealth.com/
Thanks so much for your help and great plugin!
https://www.ads-software.com/plugins/inline-google-spreadsheet-viewer/
- The topic ‘How to customize? (beginner-level instructions)’ is closed to new replies.