• In my website the replace media page has not the js/css in the page so is not usable.

    I added those 2 lines in the media-replace.php:

    <script src="<?php echo plugin_dir_url(dirname(dirname(__FILE__))) . 'assets/js/replace-media.js'; ?>"></script>
        <link href="<?php echo plugin_dir_url(dirname(dirname(__FILE__))) . 'assets/css/replace-media.css'; ?>"/>
    

    Investigating a bit in the admin the method to enqueue the files is executed but they are not in the page. Only with that change I was able to get that working.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘In replace media js/css are not enqueue in the page’ is closed to new replies.