Title: Custom HTML in Table Cell
Last modified: March 29, 2021

---

# Custom HTML in Table Cell

 *  Resolved [Harold Callahan](https://wordpress.org/support/users/charlesduncan/)
 * (@charlesduncan)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/custom-html-in-table-cell/)
 * Is there a way to place “custom HTML” code in a table cell? I am trying to insert
   the Amazon Affiliate code into the table. Here is the same of the code:
 *     ```
       <script type="text/javascript">
       amzn_assoc_tracking_id = "xxx-20";
       amzn_assoc_ad_mode = "manual";
       amzn_assoc_ad_type = "smart";
       amzn_assoc_marketplace = "amazon";
       amzn_assoc_region = "US";
       amzn_assoc_design = "enhanced_links";
       amzn_assoc_asins = "B01MRV5YNO";
       amzn_assoc_placement = "adunit";
       amzn_assoc_linkid = "7da6da928fa1515a327601a04de414e8";
       </script>
       <script src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US"></script>
       ```
   
 * Thank You.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/custom-html-in-table-cell/#post-14253074)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * This should work without issues, you will however either have to write this code
   all in one line (without manual line breaks), or you’ll have to use a modified
   Shortcode on the page:
 *     ```
       [table id=123 convert_line_breaks=false /]
       ```
   
 * (with the correct table ID), to turn off the conversion of line breaks.
 * Regards,
    Tobias
 *  Thread Starter [Harold Callahan](https://wordpress.org/support/users/charlesduncan/)
 * (@charlesduncan)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/custom-html-in-table-cell/#post-14254131)
 * Thanks, Tobias!
 * I got it working!
 * Great Plugin and Great Support!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/custom-html-in-table-cell/#post-14254194)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](https://wordpress.org/support/plugin/tablepress/reviews/#new-post)
   here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom HTML in Table Cell’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/custom-html-in-table-cell/#post-14254194)
 * Status: resolved