Title: DataTable Rendering Issue
Last modified: September 1, 2016

---

# DataTable Rendering Issue

 *  [samuelk2019](https://wordpress.org/support/users/samuelk2019/)
 * (@samuelk2019)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/datatable-rendering-issue/)
 * The table is populated successfully locally without any issues with icons and
   everything and pasted the whole code in [http://pastebin.com/KTcQ241D](http://pastebin.com/KTcQ241D)
 * However the same table doesn’t getting rendered when saved as wordpress page.
 * Please kindly help me
 * Using word press theme twenty sixteen
 * Thanks.

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

 *  [frasermarlow](https://wordpress.org/support/users/frasermarlow/)
 * (@frasermarlow)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/datatable-rendering-issue/#post-7621781)
 * Hi samuelk2019,
 * I am not sure what you mean by ‘saved as a wordpress page’ – do you mean you 
   are copying the Table HTML into the text editor of a WordPress page/post?
 * If possible can you give us a link to the original (that renders correctly) and
   a link to the wordpress version you set up?
 *  Thread Starter [samuelk2019](https://wordpress.org/support/users/samuelk2019/)
 * (@samuelk2019)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/datatable-rendering-issue/#post-7621857)
 * yes, copying the Table HTML into the text editor
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/datatable-rendering-issue/#post-7621859)
 * Try removing the whitespace and linebreaks from the Javascript. WordPress inserts
   line breaks and those will break Javascript. Use the developer tools in [Firefox](https://developer.mozilla.org/en-US/docs/Tools)(
   or [Firebug](http://getfirebug.com/)) or [Chrome](https://developers.chrome.com/devtools/)
   or [Safari](https://developer.apple.com/safari/tools/) or [IE](http://msdn.microsoft.com/en-us/library/ie/hh673541(v=vs.85).aspx)
   to check for Javascript errors in the console.
 *  Thread Starter [samuelk2019](https://wordpress.org/support/users/samuelk2019/)
 * (@samuelk2019)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/datatable-rendering-issue/#post-7621869)
 * Mark, does the whitespace and linebreaks causes this issue? i think the issue
   is due to conflict between the scripts and styles with theme vs data table style
   and script. i think that the data table is not rendering due to conflict with
   
   the script and styles between twenty sixteen theme and data table script and 
   styles.
 * The solution is we need to properly resolve by enque and registering the scripts/
   styles.
 * [https://www.seedprod.com/enqueuing-styles-scripts-wordpress/](https://www.seedprod.com/enqueuing-styles-scripts-wordpress/)
 * [http://code.tutsplus.com/articles/how-to-include-javascript-and-css-in-your-wordpress-themes-and-plugins–wp-24321](http://code.tutsplus.com/articles/how-to-include-javascript-and-css-in-your-wordpress-themes-and-plugins–wp-24321)
 * [https://datatables.net/forums/discussion/8489/cant-get-datatable-to-show-in-wordpress-page](https://datatables.net/forums/discussion/8489/cant-get-datatable-to-show-in-wordpress-page)
 * ————————————————–
 * 1. Can you please help me with a code snippet which needs to be inserted on the
   word press page on how to enqueue the scripts for the single page ?
 * 2. Do we need to add the enqueue with <? php or under the head tag in the html
   tag
    of the word press page.
 * An example with JS fiddle with source code will of great help…
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/datatable-rendering-issue/#post-7621885)
 * > I think that the data table is not rendering due to conflict with the script
   > and styles between twenty sixteen theme and data table script and styles
 * That’s why I said to learn how to use the dev tools in browsers to find jQuery
   errors.
 * The articles you linked give you what you need to learn about correctly enqueueing
   scripts into WordPress. Follow those.
 *  Thread Starter [samuelk2019](https://wordpress.org/support/users/samuelk2019/)
 * (@samuelk2019)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/datatable-rendering-issue/#post-7621895)
 * Can u please help me with a good link? I read and confused with many of the links,
   Mark

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

The topic ‘DataTable Rendering Issue’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [samuelk2019](https://wordpress.org/support/users/samuelk2019/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/datatable-rendering-issue/#post-7621895)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
