• Resolved robertwein

    (@robertwein)


    I’m building a blog post, in it are tables, and in the tables are

      lists. I think that what I’m going to ask is HTML-based, but not sure. In the page that I’ve quoted has lists below the images, but for the life of me, I have no idea of how to have the < li > items being one after the other, and no spaces in between.
    • This topic was modified 4 years, 10 months ago by robertwein.

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter robertwein

    (@robertwein)

    The server crashed, so it’s not accessible now! I’ll post when it’s up@

    Thread Starter robertwein

    (@robertwein)

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    My guess is that the extra line breaks cause problems here. Please try this modified Shortcode, with an extra parameter:

    [table id=123 conert_line_breaks=false /]
    

    (Note that I couldn’t take a look at the table, as the “ppp” parameter in your URL is missing, so that this is just a guess for the cause of the issue.)

    Regards,
    Tobias

    Thread Starter robertwein

    (@robertwein)

    I don’t really understand where I’m supposed to put that. I’m sorry, but I’m not the best code-wise.
    With respect to the URL, this is what I was given by the Preview plug-in. I copied/pasted the wrong one earlier!
    https://bewarebrainbang.ca/?p=6408&preview=1&_ppp=ba9d211fac

    Thread Starter robertwein

    (@robertwein)

    I put it on the post, where I call the table, ahead of it, but it didn’t work.

    [table id=43 conert_line_breaks=false /]
    [table id=43 /]

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, please modify the Shortcode that you are currently using to show the table, by adding that extra parameter. Now, unfortunately, I was typing to quickly and made a type, namely, I forgot a v. Please try again with the parameter

    convert_line_breaks=false
    

    Regards,
    Tobias

    Thread Starter robertwein

    (@robertwein)

    I wondered about the word, so put it in, and it didn’t work. The correction, however, is perfect — thank you!!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

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

    Best wishes,
    Tobias

    Thread Starter robertwein

    (@robertwein)

    I’d thought that it would need to be solved either by HTML in the < li > line, or by CSS, because I don’t know enough about the operational-coding of Tablepress. With this, I’ll add a third option to how I try to solve it. Or, more realistically, when I reach out to those-who-know for help!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    note that it could also be solved by CSS, namely by making the HTML <br> tags (for line breaks), that TablePress add in the HTML, invisible:

    .tablepress br {
      display: none;
    }

    And there’s even another option: These HTML <br> tags are added instead of the line breaks. So, just remove all line breaks (from pressing the “Enter” key) in the HTML code (with the <li>s in it). This would however make the code messy to read, I guess.

    Regards,
    Tobias

    Thread Starter robertwein

    (@robertwein)

    I think that I’m understanding more. Pretty much everything can be solved in any of the three options. I think that, because I think that it would be optimal to have all solutions in one way, that I’ll convert it to the CSS solution. That way if I encounter it again, I’ll only need to solve it by looking in one place.
    I’m trying to learn more, I entered this into the CSS solution the following code:

    .tablepress-id-43 br {
    display: none;
    }

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, you could choose any solution. Some have advantages here, but disadvantages there. So, it’s good to have options ??

    Best wishes,
    Tobias

    Thread Starter robertwein

    (@robertwein)

    That’s awesome, thank you! So, while it was inadvertent, what I’d done was a good thing. I’d basically guessed that, which is why I’d re-done what you’d shown me as CSS. I wanted to have all solutions to what I’d encountered to be done in one place, so that I only need look in one.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, makes sense ??

    Best wishes,
    Tobias

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘I’ve tried to figure it out, but I couldn’t’ is closed to new replies.