Title: [Plugin: WP Easy Post Types] Causes Stylesheet and Javascript problems
Last modified: August 19, 2016

---

# [Plugin: WP Easy Post Types] Causes Stylesheet and Javascript problems

 *  [pencilneck](https://wordpress.org/support/users/pencilneck/)
 * (@pencilneck)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-easy-post-types-causes-stylesheet-and-javascript-problems/)
 * Lot’s of extra style sheets and javascript calls are made, including ON THE PUBLIC
   side of the website, and the path to them is incorrect. The css/js should only
   be enqueued on the admin side.
 * In order to get the Chrome console to stop throwing errors at me, I had to comment
   out all the places where the js/css was enqueued.

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

 *  [figcar](https://wordpress.org/support/users/figcar/)
 * (@figcar)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-easy-post-types-causes-stylesheet-and-javascript-problems/#post-1582594)
 * I noticed this too. To keep the JS/CSS off my public pages, I wrapped every case
   in
 *     ```
       if (is_admin()) {
       [....SOME CODE WITH wp_enqueue_script OR wp_enqueue_style....]
       }
       ```
   
 * The following six files were affected:
    - easy-post-types/classes/custom-checkbox/custom-checkbox.php
    - easy-post-types/classes/custom-datefield/custom-datefield.php
    - easy-post-types/classes/custom-image/custom-image.php
       easy-post-types/classes/
      custom-select/custom-select.php
    - easy-post-types/classes/custom-textfield/custom-textfield.php
    - easy-post-types/custom-type.php
 * This succeeded in removing the JS/CSS from public pages but leaving it present
   on the Admin side.
 *  Thread Starter [pencilneck](https://wordpress.org/support/users/pencilneck/)
 * (@pencilneck)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-easy-post-types-causes-stylesheet-and-javascript-problems/#post-1582691)
 * Thanks figcar, that’s what I ended up doing too.
 *  [ocorral](https://wordpress.org/support/users/ocorral/)
 * (@ocorral)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-easy-post-types-causes-stylesheet-and-javascript-problems/#post-1582718)
 * I noticed this as well. all of those are getting loaded on the public side for
   no reason.
 *  [mccormicky](https://wordpress.org/support/users/mccormicky/)
 * (@mccormicky)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-easy-post-types-causes-stylesheet-and-javascript-problems/#post-1582731)
 * Opera will not load Cufon if there is even 1 empty or 404 stylesheet & with easy
   post types activated there are 5 stylesheets included with the wrong path.
    If
   you need to Fix this(all other browsers seem to be more forgiving about this),
   FTP to wp-content/plugins/easy-post-types/classes
 * You have to edit each file listed here:
    custom-checkbox/custom-checkbox.php 
   custom-checkbox/custom-datefield.php custom-checkbox/custom-image.php custom-
   checkbox/custom-select.php custom-checkbox/custom-textfield.php In each file 
   you find this line(Sorry Line # are not the same): `wp_enqueue_style($this->getId().'-
   style', $this->root. 'style.css');`
 * **Change it to**
 *     ```
       wp_enqueue_style($this->getId().'-style', $this->httpRoot. 'style.css');
       ```
   
 * The author defines root and httpRoot
 *     ```
       $this->root=dirname(__FILE__).'/';
               $this->httpRoot = plugins_url( '', __FILE__).'/';
       ```
   
 * I opened the main plugin file custom-type.php
    and noticed scripts were included
   correctly if using httpRoot so I put 2 and 2 together.
 * Now Opera loads Cufon.
 *  [cerupcat](https://wordpress.org/support/users/cerupcat/)
 * (@cerupcat)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-easy-post-types-causes-stylesheet-and-javascript-problems/#post-1582754)
 * Thanks figcar! This should definitely be included in the next release.

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

The topic ‘[Plugin: WP Easy Post Types] Causes Stylesheet and Javascript problems’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-post-types.svg)
 * [WP Easy Post Types](https://wordpress.org/plugins/easy-post-types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-post-types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-post-types/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-post-types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-post-types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-post-types/reviews/)

 * 5 replies
 * 5 participants
 * Last reply from: [cerupcat](https://wordpress.org/support/users/cerupcat/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-easy-post-types-causes-stylesheet-and-javascript-problems/#post-1582754)
 * Status: not resolved