Forum Replies Created

Viewing 6 replies - 46 through 51 (of 51 total)
  • Thread Starter andynz

    (@andynz)

    Hi Tobias
    Thanks for the helpful reply.
    I decided to go for the collapse option of the responsive tables extension.
    You can see the result at https://nz.pat.gen.nz/region-directory/

    Still one problem (should it be a new topic?) is that the columns in both tables are not lined up, even though the column widths are set the same in both tables (see below).

    How do I ensure that the column widths stay as specified?

    Regards
    Andy

    /* Region directory table – adjust width to columns, centre on page; */
    [id^=’tablepress-dir-‘] {
    width: auto;
    margin: 0 auto 1em !important;
    }

    /* Region directory table – display grid, no word wrap, less padding*/
    [id^=’tablepress-dir-‘] .tablepress th,
    [id^=’tablepress-dir-‘] .tablepress td {
    border: 1px solid #cccccc;
    white-space: nowrap;
    padding: 4px;
    }

    /* Region directory table – set column widths and alignment*/
    [id^=’tablepress-dir-‘] .column-1 {
    width: 250px;
    }

    [id^=’tablepress-dir-‘] .column-2 {
    width: 250px;
    }

    [id^=’tablepress-dir-‘] .column-3 {
    width: 100px;
    }

    [id^=’tablepress-dir-‘] .column-4 {
    width: 380px;
    }

    [id^=’tablepress-dir-‘] .column-5 {
    width: 30px;
    }

    [id^=’tablepress-dir-‘] .column-6 {
    width: 30px;
    text-align: right;
    }

    [id^=’tablepress-dir-‘] .column-7 {
    width: 30px;
    }

    [id^=’tablepress-dir-‘] .column-8 {
    width: 200px;
    }

    [id^=’tablepress-dir-‘] .column-9 {
    width: 200px;
    }

    Hi
    I have recently installed TablePress on a new website and when attempting to save a table, get the message:

    Saving failed: AJAX call failed: error – Forbidden. Try again while holding down the “Shift” key.

    It was OK if I used the shift key.

    I discussed it with the server guys (who suggested changing the PHP version – to no avail). Then discovered that the error only occurs if there is a blank row at the end of the table, or if the final cell in the last row is blank.

    WordPress 4.5.2, Coraline 1.5.2, TablePress 1.7, PHP 5.3

    This also happens with TablePress 1.4 and WordPress 3.9.2

    Just thought you might like to know.

    Regards
    Andy

    Thread Starter andynz

    (@andynz)

    Thanks for the suggestion.
    I use multiple horizontal tabs, see https://waibopscd.org.nz/?page_id=274

    and also accordion style, see https://waibopscd.org.nz/?page_id=306

    so this is something that needs investigating.

    Thread Starter andynz

    (@andynz)

    I had a look around, but found nothing that I was entirely happy with.
    Having taken over the website fairly recently and made substantial changes, I do not want to inflict another change (even if only the appearance) just yet so will just stick to WP 4.0.1.

    I might upgrade to the latest version in a year or so and only install compatible plugins, in which case I will let you know.
    Andy

    Thread Starter andynz

    (@andynz)

    Thanks a lot Paulwpxp. It works exactly as you said it would.
    Although I have to admit that I do not really understand the ” > div ” part.

    Regards
    Andy

    Thread Starter andynz

    (@andynz)

    Baden
    I have made the changes that you suggested, but have done so on a new testing site: test.pat.gen.nz
    The print test page looks like this:
    [print-me title=”Test print with target=#content” target=”#content”]
    [print-me title=”Test print with target defaulting to #content”]
    This is the text to be printed.

    I have also changed the print-o-matic options:
    Default target attribute has been changed from article (as at original installation) to #content.

    The results are the same as before:
    With target=#content specified:
    OK in Firefox.
    IE results in blank page with no printer dialogue.

    With no target specified:
    FF and IE both result in blank page and a printer dialogue. However, this is academic really, bcause I chose the plugin for its ability to specify a target and exclude specific elements.

    Can you help?

    Andy

Viewing 6 replies - 46 through 51 (of 51 total)