Title: CSS Conflict with wp_enqueue_editor()
Last modified: July 29, 2024

---

# CSS Conflict with wp_enqueue_editor()

 *  Resolved [barellano](https://wordpress.org/support/users/barellano/)
 * (@barellano)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/)
 * I have a plugin that requires wp_enqueue_editor() to enqueue editor scripts &
   stylesheets on the frontend, however, the issue is that the Vantage menu bar 
   does not expand 100% width when using wp_enqueue_editor().
 * ![](https://i0.wp.com/zbfyp2v4ks.onrocket.site/wpcw-testing/wp-content/uploads/
   sites/2/2024/07/2024-07-28_17-37-26.jpg?ssl=1)

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/page/2/?output_format=md)

 *  [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17918881)
 * Hi, thanks for posting your question.
 * What’s the name of the plugin?
 *  Thread Starter [barellano](https://wordpress.org/support/users/barellano/)
 * (@barellano)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17919872)
 * Hi Andrew, its a premium plugin called WP Courseware. I’d be glad to provide 
   a copy. How can I get it to you?
 *  [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17920069)
 * Thanks. I’ve seen this issue once before. When WP Courseware is activated, the
   Vantage sticky-menu class is being assigned to the body tag at the top of the
   page, even when the menu is not sticky. Normally the sticky-menu class is assigned
   to the body tag only once the menu reaches to the top of the window. I don’t 
   know why that’s happening. If you’re able you could perhaps investigate a bit
   further.
 *  Thread Starter [barellano](https://wordpress.org/support/users/barellano/)
 * (@barellano)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17920548)
 * Hi Andrew, wp_enqueue_editor() is a native WordPress function which is what is
   causing the issue. When the function is commented out, the issue resolves. Any
   other help you can provide?
 *  [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17920587)
 * Hi, thanks, it’s unlikely that’s directly the issue. What is being loaded? A 
   script? If so, you could try opening the file that is being loaded, clear the
   contents, save and re-check the issue.
 *  Thread Starter [barellano](https://wordpress.org/support/users/barellano/)
 * (@barellano)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17920630)
 * Hey Andrew, actually it appears to be directly related. If I disable WP Courseware
   and modify the functions.php file with the following, I can reproduce the issue.
 *     ```wp-block-code
       add_action( 'wp_enqueue_scripts', 'test_wp_enqueue' );function test_wp_enqueue(){	wp_enqueue_editor();}
       ```
   
 *  [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17920636)
 * Thanks for the test function. Do you see the sticky-menu class added to the body
   class before scroll when the conflicting plugin is activated?
 *  [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17920658)
 * I’ll log this shortly for our developer to check up on. Is WP Courseware loading
   wp_enqueue_editor in the front-end as you have in your test? wp_enqueue_editor
   is usually used to load admin assets.
 *  Thread Starter [barellano](https://wordpress.org/support/users/barellano/)
 * (@barellano)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17920668)
 * Yes the sticky-menu class is added to body class with plugin activated. However,
   if I comment out the line of code with wp_enqueue() in the plugin, the issue 
   is resolved and the sticky-menu class is removed. The test function is the same
   scenario, it adds the sticky-menu class to body class. I’m 100% certain the issue
   is a conflict with this WordPress native function.
 *  Thread Starter [barellano](https://wordpress.org/support/users/barellano/)
 * (@barellano)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17920670)
 * Thank you Andrew. Yes, WP Courseware seems to be running this on the front end
   via wp_enqueue_scripts.
 *  [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17920673)
 * Thanks for confirming the sticky class issue. The sticky-menu class is normally
   added when the menu reaches the top of the window.
 * Why would wp_enqueue_editor be loaded in the front-end (wp_enqueue_scripts)? 
   Is WP Courseware doing the same? Wouldn’t admin_enqueue_scripts be a more logical
   hook for your test function?
 *  [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17920677)
 * Sorry, I just read your latest comment. If you have a moment, please could you
   try opening a ticket with the plugin authors. I’m not quite following why they’ve
   hooked wp_enqueue_editor into wp_enqueue_scripts.
 *  [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17920682)
 * On our website contact page you’ll find our email address. If needed, the plugin
   authors are welcome to send us an email and chat with our developer. That said,
   you might be able to make progress with what we’ve discovered here today.
 *  Thread Starter [barellano](https://wordpress.org/support/users/barellano/)
 * (@barellano)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17923002)
 * Hi Andrew, I did reachout via your website contact form. Not sure if you got 
   the message. I spoke with WP Courseware support. The issue that is causing the
   sticky-menu is indeed when the wp_editor() function is called. The reason this
   is called on the front end is because WP Courseware units have a feature where
   students can take notes and the editor is required to enter the notes in the 
   UI. Again, this function is native WordPress functionality.
 *  [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/#post-17923061)
 * Hi BJ
   Thanks for your reply. We’re aware that the functions discussed in this
   thread are part of the WordPress core. We actively use those same functions in
   our plugins. There is no misunderstanding as to what is and what isn’t a core
   function. We haven’t typically seen the discussed functions used on the site 
   front-end which is why this hasn’t been raised previously, at least not in detail.
   I have seen one previous report but it wasn’t full diagnosed. Alex has replied
   to your email, he’s sent you a build that prefixes the Vantage sticky-menu class.
   WordPress is using that same class name in conjunction with the discussed functions
   which is where the issue is occurring.ThanksAndrew

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/page/2/?output_format=md)

The topic ‘CSS Conflict with wp_enqueue_editor()’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/vantage/1.20.33/screenshot.jpg)
 * Vantage
 * [Support Threads](https://wordpress.org/support/theme/vantage/)
 * [Active Topics](https://wordpress.org/support/theme/vantage/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/vantage/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/vantage/reviews/)

 * 17 replies
 * 2 participants
 * Last reply from: [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/css-conflict-with-wp_enqueue_editor/page/2/#post-17924085)
 * Status: resolved