• Resolved dab0927

    (@dab0927)


    I am completely baffled. When I use the function in TablePress that creates links in my table, it works just fine. However, I have quite a few to do so I thought I could fix them all by editing the cells based on what I saw as the desired code for the link. For some reason pasting the link into the appropriate cell with the same code does not work.

    example: if I want to add a link to a particular cell and I do it the traditional way by the menu drive function. the generated code is

    <td class="column-3"><a href="mailto:toastmasterluzhang@gmail.com" rel="noopener" target="_blank">toastmasterluzhang@gmail.com</a></td>

    But, if I type or cut and paste the exact text into the same cell, the mailto link does not function.

    This brings up my other question, I use a staging site. Will I have the same or similar problem when moving my data from the staging URL to the live site?

    I am using
    TablePress ver 1.14
    WordPress ver 6.0.3
    There is no theme associated with that page, but I have used Elementor for other parts of the site.

    • This topic was modified 1 year, 5 months ago by dab0927.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • There’s a problem with the html you’ve pasted. Check you table entries. In the ones that aren’t working you’ve left an ‘f’ off of ‘href’, and an ‘r’ instead of a ‘t’ at the end of target. See below:

    <a hre="mailto:toastmasterjessicaflinn@gmail.com" rel="noopener" targer="_blank">toastmasterjessicaflinn@gmail.com</a>

    Should be:

    <a href="mailto:toastmasterjessicaflinn@gmail.com" rel="noopener" target="_blank">toastmasterjessicaflinn@gmail.com</a>

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Just to be sure, when copy/pasting, do you only copy the <a ... >...</a> part?

    What does the resulting HTML code look like with your manually created links? Is something added or removed to/from the code?

    Regarding the other question: This has nothing to do with staging/live sites, so you should not experience this problem just from that. The best way to move tables from staging to live would be to export them in the JSON format on the staging site and then to import the resulting .json file into TablePress on the live site.

    Regards,
    Tobias

    Thread Starter dab0927

    (@dab0927)

    Not only does it take a village to raise a child, but it takes a village to check my code. Thank you @mjcs for catching my silly mistakes.

    @tobiasbg I was only copying the HTML just as you showed. Thanks for your advice regarding moving the table from a staging site to production.

    Thank you both for your quick response.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ah, indeed. That missing f is the cause for this. Great find, @mjcs! Thanks!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Mailto link fails when edited’ is closed to new replies.