• Resolved kees78

    (@kees78)


    Hi,

    I am trying to enqeue a stylesheet to the elementor editor. According to your example, it should be done like this: https://developers.elementor.com/docs/scripts-styles/editor-styles/

    So i wrote a very simple plugin with this code:

    function my_plugin_register_editor_styles() {
    wp_register_style( ‘editor-style-1’, plugins_url( ‘assets/css/editor-style-1.css’, FILE ) );
    }
    add_action( ‘elementor/editor/before_register_styles’, ‘my_plugin_register_editor_styles’ );

    function my_plugin_enqueue_editor_styles() {
    wp_enqueue_style( ‘editor-style-1’ );
    }
    add_action( ‘elementor/editor/before_enqueue_styles’, ‘my_plugin_enqueue_editor_styles’ );

    In the plugins folder is a folder assets/css with the file editor-style-1.css

    However, the style is not enqueued. What am i missing?

Viewing 1 replies (of 1 total)
  • Plugin Support Rica

    (@ricav)

    Hi @kees78,

    Unfortunately, providing custom code assistance falls outside our support scope.

    I suggest to reach out to the custom codes provider or the developer of your website to make adjustments to the custom CSS codes on your website.

    I suggest you join the Elementor Facebook Community​ where you can find a supportive and helpful community of experienced users who will be happy to provide valuable tips and tricks.

    For any queries related to Custom Code, you can also reach out to our developers here: https://elemn.to/discord

    Thank you for your understanding and cooperation.

    Kind regards,

Viewing 1 replies (of 1 total)

The topic ‘Adding style to the elementor editor’ is closed to new replies.