• Resolved jonluciano

    (@jonluciano)


    Hello,

    I have a table with one row and three columns at https://www.extreme-workout.com/resources

    When you go to the page, nothing is showing up in the table. The following data is in each cell

    The first cell has:

    <script src="https://widgets.paper.li/javascripts/init.js" type="text/javascript"></script>
    <script>
      Paperli.PaperWidget.Show({
        pid: 'jonluciano/fitness-and-health',
        width: 200,
        background: '#82b6ce'
      })
    </script>

    The second cell is empty (for now)
    The third cell has:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Any help is appreciated!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    using JavaScript in table cells is a little bit tricky: You must not have any manual line breaks in the cell.
    So, if you format the code to be in one line and paste that into the cell, everything should work:

    <script src="https://widgets.paper.li/javascripts/init.js" type="text/javascript"></script><script>Paperli.PaperWidget.Show({pid: 'jonluciano/fitness-and-health', width: 200, background: '#82b6ce'})</script>

    Regards,
    Tobia

    Thread Starter jonluciano

    (@jonluciano)

    Worked like a charm. Thank you!!!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    great! ?? Thanks for the confirmation!

    Best wishes,
    Tobias

    Hello Tobias,
    I am trying to install the text widget on my primary sidebar but it’s not working. The original script is:
    <script src=”https://widgets.paper.li/javascripts/init.js&#8221; type=”text/javascript”></script>
    <script>
    Paperli.PaperWidget.Show({
    pid: ‘alalieh/1316251207’,
    width: 200,
    background: ‘#FB0000’
    })
    </script>

    When I save it, the first part of the script disappears as follows:
    Paperli.PaperWidget.Show({pid: ‘ alalieh/1316251207’, width: 200, background: ‘#82b6ce’})

    Could you help me install the paper.li widget on my homepage please?
    Thanks a lot

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question.
    Just to be sure: Are you using WP-Table Reloaded (as this thread originally contains a question on WP-Table Reloaded)?

    Judging from your description, I assume that your user does not have the necessary capabilities to enter unfiltered HTML code into the text widget.
    Is the code showing up correctly in the final page HTML output?

    Regards,
    Tobias

    Hello,

    Thanks for your reply. I am a basic user.
    I am trying to place a widget on my primary side bar on the homepage. From the widget menu I chose “Text”. In it I wrote the embed code I got from https://paper.li/alalieh/1316251207
    The code goes as follows:

    <script src=”https://widgets.paper.li/javascripts/init.js&#8221; type=”text/javascript”></script>
    <script>
    Paperli.PaperWidget.Show({
    pid: ‘alalieh/1316251207’,
    width: 200,
    background: ‘#FB0000’
    })
    </script>

    Now, whenever I try to enter this code in the “Text” widget, it won’t be saved and the widget wont appear as it should be on my homepage. All I get is a part of the original script I wrote.
    What am I doing wrong? would you help me rewrite the code please?

    Thanks a lot

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    then this means that the code is filtered by WordPress due to security reasons. Have you tried this as and admin user?

    I suggest that you also google for “unfiltered HTML”, as that’s likely what you are not allowed to add. Other than that, I don’t really know what to do here, sorry ??

    Regards,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Data in cells not showing up.’ is closed to new replies.