• Resolved HvH

    (@hvh)


    Hi Tobias,

    I just installed your plugin on https://www.fysiotherapieoegstgeest.nl (Theme: Twenty Eleven for WP.org). On the homepage, I needed to lay-out the photos with text below them. That’s why I use a table. But since the standard theme always show the horizontal lines of tables, I intalled your plugin. As you can see, there’s still one line visible. I already altered my style.css (child theme) by entering:

    ‘.tablepress,
    .tablepress tr,
    .tablepress tbody td,
    .tablepress thead th,
    .tablepress tfoot th {
    border: none;
    }’

    However, the result is the same as without this code.

    What to do in order to get rid of the lines between pictures and text and under the text?

    Thanks in advance.

    https://www.ads-software.com/plugins/tablepress/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    You might need to make that CSS a little bit more aggressive. Please try changing the line

    border: none;

    to

    border: none !important;

    Regards,
    Tobias

    Thread Starter HvH

    (@hvh)

    Wow, you’re fast! I tried this code, but nothing happens…

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I just checked your site and can’t find the code being inserted anywhere. Did you really add that to the style.css of the active theme?

    Instead of adding it to the theme, it’s probably better to add it to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress. That will add the code to the TablePress CSS file, which is more robust here.

    Regards,
    Tobias

    Thread Starter HvH

    (@hvh)

    Thank you! I added it into my css file of the child theme I made previously. But adding it to the CSS field in the plugin options area worked better. The lines are gone.

    Great! Thanks very much, I learned a lot today!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    From what I can see, your active theme is TwentyEleven and not a child theme. That’s probably why the code was not being recognised. But with the “Custom CSS” option working, that’s even better ??

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Thread Starter HvH

    (@hvh)

    Tnx. About the child-theme: I made it in my host’s folder and usually it works. How can you see it doesn’t and how can I activate it?

    And how to alter the margins? I added this to the custom css without success:


    margin-top: 5px;
    margin-left: 0;

    I’d like the left image to be in line with the text, without any margins/paddings.

    And I’d like the text under the images to be a bit higher (closer to the bottom of the pictures).

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    did you also activate the child theme on the “Themes” page in the WordPress admin area? I might be mistaken, but it seems that your current theme is still TwentyEleven.
    Or did you directly modify TwentyEleven’s “style.css”?

    For those margins: Please don’t add those directly to the other CSS like that.
    Instead, try something like this:

    .tablepress-id-1 .row-1 td {
      padding: 0;
    }
    .tablepress-id-1 .row-2 td {
      padding: 0 0 0 2px;
    }

    As a side note: As it seems you are using the table to show images. It might actually be better to try a gallery plugin for that. The captioning might be easier, and you might benefit from things like a Lightbox to display a bigger version of the image.

    Regards,
    Tobias

    Thread Starter HvH

    (@hvh)

    Hi Tobias,

    I didn’t change anything regarding the child yet; I’ll try to follow your advice.

    As for the tip: thank you. I do indeed use it for displaying images; or better: for lay-outing them correctly with the text under them (instead of somewhere else). For this page, it works fine. But I’ll keep in mind the possibility of a special plugin for other cases.

    As for the code snippet: do the 4 numbers mean ‘left, top, right, bottom’, in that order?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no, in CSS, the order of the number is “top right bottom left”.

    Best wishes,
    Tobias

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Delete border doesn't work’ is closed to new replies.