Title: Without CSS
Last modified: August 22, 2016

---

# Without CSS

 *  Resolved [nhoa88](https://wordpress.org/support/users/nhoa88/)
 * (@nhoa88)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/without-css/)
 * Hello,
 * I have just tried this plugin, and it works perect… But I’m not sure if I’m doing
   something wrong.
 * I have a php file and its corresponding css and js files. I put them in the folder
   where I have wordpress. Then I wrote the next one into a WordPress page:
 * [insert_php]
    include(“myFileName.php”); [/insert_php]
 * It work’s, because I can see the context. But not perfect!! It can’t take the
   JS and CSS files.
 * Any suggestion??
 * Thank you in advance!! 🙂
 * [https://wordpress.org/plugins/insert-php/](https://wordpress.org/plugins/insert-php/)

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

 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/without-css/#post-5852189)
 * It may work by inserting the JS and CSS files before the [insert_php] tag instead
   of including them in the myFileName.php file.
 *     ```
       <script src="/file.js"></script><link rel='stylesheet' type='text/css' link="/file.css">[insert_php]
       include("myFileName.php");
       [/insert_php]
       ```
   
 * (I’m putting the script and link tags on the same line as [insert_php] so WordPress
   doesn’t insert extraneous 
    tags.)
 * Will
 *  Thread Starter [nhoa88](https://wordpress.org/support/users/nhoa88/)
 * (@nhoa88)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/without-css/#post-5852190)
 * So, as you say Will, I put this way:
 * <script src=”./jquery.js”></script><script src=”./jquery.dataTables.js”></script
   ><link rel=’stylesheet’ type=’text/css’ link=”./jquery.dataTables.css.css”>[insert_php]
   
   include(“myFileName.php”); [/insert_php]
 * Buit it doesn’t work 🙁
 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/without-css/#post-5852216)
 * Sorry it doesn’t work. What I did was suggest, as you had requested. But if the
   JavaScript and CSS don’t work then they don’t work.
 * Maybe it has to do with how you’re importing them. Try removing the leading dots
   from the URLs. src=”/jquery.js” instead of src=”./jquery.js” for example.
 * Will
 *  Thread Starter [nhoa88](https://wordpress.org/support/users/nhoa88/)
 * (@nhoa88)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/without-css/#post-5852218)
 * Thank you for your reply Will.
 * I have already tried that, but it doesn’t work. I’m sure that my CSS and JS files
   works because if i try them outside wordpress it works.
 * The problem is that I don’t know where I have to put these files to work.
 * Could anyone help me please?
 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/without-css/#post-5852231)
 * One more thing to try is use the full [http://&#8230](http://&#8230); URL instead
   of relative URL for your src and link attribute values.
 * Will
 *  Thread Starter [nhoa88](https://wordpress.org/support/users/nhoa88/)
 * (@nhoa88)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/without-css/#post-5852239)
 * I have tried also with another example that I have that it doesn’t use CSS files,
   it use 3 JS files.
 * So, with this new example:
 * I don’t understand very well why it is not enough if I put this code inside the
   php that I’m including in the wordpress page.
 * This is what I have inside the php.
 *     ```
       <script src="./highcharts.js"></script>
       <script src="./highcharts-more.js"></script>
       <script src="./data.js"></script>
       ```
   
 * But i have tried what you say. Removing these three line in the php and put this
   way in the page.
 *     ```
       <script src="/highcharts.js"></script><script src="/highcharts-more.js"></script><script src="/data.js"></script>
       [insert_php]
       include("myFileName.php");
       [/insert_php]
       ```
   
 * (Also I have tried with the full URL but nothing)
 * 🙁 I guess that you have used this kind of examples with your plugin, no?? I 
   mean, a php including javascript funcionality.
 * Thank you!!
 *  Thread Starter [nhoa88](https://wordpress.org/support/users/nhoa88/)
 * (@nhoa88)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/without-css/#post-5852350)
 * Resolved! The problem was that my JS file was interpreting wrong. I don’t know
   if it was because of the plugin or what but it was addding ‘</p>’ in blank spaces.
 * Thanks for the help Will!

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

The topic ‘Without CSS’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [folder](https://wordpress.org/support/topic-tag/folder/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 7 replies
 * 2 participants
 * Last reply from: [nhoa88](https://wordpress.org/support/users/nhoa88/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/without-css/#post-5852350)
 * Status: resolved