Support » Themes and Templates » Enqueue Script or Theme Style Bleeding into Admin Area

  • Resolved SLIcore Design

    (@slicore-design)


    Hello,
    I am having an interesting issue with Jetpack’s Edit CSS function.

    Something about my theme is causing the Edit CSS editor window to load with a height of 0. I checked my style sheet and I am not calling ANY of the IDs or classes used in the editor window. I do notice in the console, however, that I am getting an “Uncaught ReferenceError: enquire is not defined” only in the admin area. This, I think, narrows the problem down quite sufficiently. Does anyone have documentation on how to stop a script from enqueuing in the admin area? I am using the enquire.js in concert with masonry.js to add a masonry layout to my footer widgets and my catalogue page but apparently it’s being called in my admin area.

    Any help would be greatly appreciated.

    SLIcore Design

Viewing 1 replies (of 1 total)
  • If anyone gets this, I figured my problem out (if anything else blows up, it may or may not be related to my “solution”.)

    I had my enqueue scripts in an incorrect sequence. Enquire.js was being called and then Masonry. I put Masonry’s enqueue above Enquire and voila! Alles gut!

    Hope this is of use to someone.

Viewing 1 replies (of 1 total)
  • The topic ‘Enqueue Script or Theme Style Bleeding into Admin Area’ is closed to new replies.