Title: css and js loading &quot;bug(?)&quot;
Last modified: August 21, 2016

---

# css and js loading "bug(?)"

 *  Resolved [eldehel](https://wordpress.org/support/users/eldehel/)
 * (@eldehel)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/css-and-js-loading-bug/)
 * Hi All,
 * First thank you for your module, it saves a lot of time and it’s nice to be able
   to make a clean integration and have some control on it.
 * I’m using WP 3.5.2 and PS 1.5.4.1.
 * I test on local (xampp), I didn’t tried on live server yet as I’m in dev process.
 * Ok The thing which interests me the most was to import the header and footer 
   of PS inside WP. That worked, but partially. For one reason that I can’t explain
   the files from the function “public function setMedia()” from the FrontController
   was not loaded. So some js and css was loading but for example not the global.
   css, jquery etc…
 * I’m using default PS template and an almost empty child them from twentytheme.
   It’s not a problem wich the jquery version etc (i deregister the Jquery from 
   WP in my functions file to prevent any conflicts.).
 * So I’m not a super developper, so the only fix I found is to add this line :
 * `parent::setMedia();`
 * right after the init function, like this inside the file /prestashop-integration-
   controller.php :
 *     ```
       class PrestaShopIntegration_FrontController extends FrontController {
       		//public $php_self = 'wordpress';
   
       		public function init() {
       			$this->page_name = 'wordpress';
       			parent::init();
       			parent::setMedia();
   
       		}
       ```
   
 * And that worked, all the missing files are here now (jquery, global.css, grid_prestashop.
   css, … I not sure it’s a good way to modify your code, but I needed to fix that
   problem quickly.
 * So if you are in the same local situation, try this first. Most of the time I
   didn’t have big bugs with plugins etc… so my configuration is really standard
   as I do nothing special, I follow the instructions and that’s all.
 * I hope this can help someone and I’m interested to know if someone has a clue
   about this behaviour, thanks.
 * [http://wordpress.org/extend/plugins/prestashop-integration/](http://wordpress.org/extend/plugins/prestashop-integration/)

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

 *  Plugin Author [aytechnet](https://wordpress.org/support/users/aytechnet/)
 * (@aytechnet)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/css-and-js-loading-bug/#post-3933388)
 * Hi eldehel,
 * You are right : this fix is necessary for PS 1.5.4.1 to insert the media (and
   not necessary for PS < 1.5.4.1).
 * The next release will contain it !
 * Kind Regards,
    François.
 *  Plugin Author [aytechnet](https://wordpress.org/support/users/aytechnet/)
 * (@aytechnet)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/css-and-js-loading-bug/#post-3933393)
 * Hi eldehel,
 * It should work in the current 0.9 : is it ok for you ?
 * Kind Regards,
    François.
 *  Thread Starter [eldehel](https://wordpress.org/support/users/eldehel/)
 * (@eldehel)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/css-and-js-loading-bug/#post-3933394)
 * Hi François,
 * Yes I just tried this morning and I confirm this is working fine with WP 3.6 
   too.
 * Thanks for the fix !
    Kind regards, Eldehel

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

The topic ‘css and js loading "bug(?)"’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/prestashop-integration.svg)
 * [PrestaShop Integration](https://wordpress.org/plugins/prestashop-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/prestashop-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/prestashop-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/prestashop-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/prestashop-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/prestashop-integration/reviews/)

## Tags

 * [integration](https://wordpress.org/support/topic-tag/integration/)
 * [prestashop](https://wordpress.org/support/topic-tag/prestashop/)

 * 3 replies
 * 2 participants
 * Last reply from: [eldehel](https://wordpress.org/support/users/eldehel/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/css-and-js-loading-bug/#post-3933394)
 * Status: resolved