it doesn’t open it when I click on the link in page source. It just refreshes the page source page
Are you sure? Sounds like you’re getting the source for a WordPress 404 page. My spidey senses detect this is the problem:
plugin_dir_url( 'front-end-editor/build/' ) . 'editor.js'
…which isn’t quite how it should be used (see the codex), and you end up with:
http://example.com/wp-content/plugins/front-end-editor/editor.js
…see how the path is now broken? (build
has been stripped)
Instead, use plugins_url
(see the codex):
plugins_url( 'front-end-editor/build/editor.js' )
Related Posts:
- force enqueue script to be first in order of prominence
- Handling jQuery Component Collision
- WordPress Enqueue Script Chaos (jQuery & Foundation.js)
- Pass $this to function nested in another public function of the same class
- Dequeue / Deregister script and replace it with a new plugin
- Handling jQuery Component Collision
- How do I make sure a plugin loads a script after jQuery
- Calling JavaScript file with Custom Plugin
- Problem in loading javascript in footer
- React JSX in WordPress Plugin Development
- Use wp_enqueue_scripts from included php file
- jQuery for custom plugin not working with Divi theme
- Create shortcode to echo javascript
- Register google jquery gets overwritten by plugin
- force jQuery to load in the head
- plugins_url not returning correct directory
- How do I keep children of certain parent menus expanded by default on a sidebar?
- How to install jquery dotdotdot plugin for WordPress?
- AJAX doesn’t pass variables to the php function in the plugin
- Enqueue scripts in the footer
- Trying to use wp_register_script/style and enqueu them from an array – getting an error [duplicate]
- Uncaught TypeError: jQuery(…).flipster is not a function in wordpress
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- ob_start() combined with wp_query
- Redux Framework: Page freezes on typing in Editor
- Front end inline editing?
- How can I inject options into an select tag inside the widget form?
- jquery tinymce and bundled wp plugins
- Display wordpress post’s in popup?
- How to prevent plugins from loading jQuery
- Using color picker in plugin, does input attribute order matter?
- JQuery plugin that works with Google 1.10.2 and not with WordPress 1.10.2
- Loading a purchased jquery plugin in a wordpress theme
- Using window.onload with Ubermenu
- Post Comments with Ajax in WordPress
- jQuery | JJ Carousel Plugin – Can’t set speed [closed]
- How to call plugin functions in a custom template
- Jquery function working in Dev Console but not otherwise [duplicate]
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Integrating jQuery Datatables with Editor into wordpress admin
- how to insert data in wordpress table usnig jquery ajax
- Stop WordPress processing Javascript as text
- Jquery plugin not working on single pages
- Add script into front from my plugin
- Jquery NoConflict Problem
- Fullscreen Video/GIF Intro
- this jQuery function works perfect in static html page but not on wordpress
- How to include this jQuery File in wordpress?
- Is there a loading priority for login_enqueue_scripts?
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- “Conflict” with jQuery (or its plugins)?
- How does one include the JQuery UI plugin to wordpress and enque it correctly in a plugin form?
- a weird attribute on every html tag
- AJAX on Front-End Button Click not working – Custom Plugin
- WordPress error when replacing local jQuery by externally-hosted
- How to handle WordPress Plugin Front-end AJAX Call [duplicate]
- Why am I unable to load scripts in head in plugin?
- How to add an element right after the article using jQuery?
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- Deactivate JS Script in Plugin Shortcode
- How to track clicks
- Remove / overwrite some functions in buddypress.js
- wordpress add_action() issue in ajax call
- Remove Yoast jQuery from front end
- Front-end CSS Library for plugin [closed]
- How to display checked posts on another page over AJAX? (like comparasion style)
- Adding media upload button to User Profile page (following a tutorial)
- Localizing methods for jQuery append prepend wrap parent
- JQuery prepend a function
- Is there a function to list all uploaded images? How can I add one?
- How to best create a jQuery Slider to display a native wordpress gallery?
- How to remove js ui library added by default by wordpress
- Add type to enqueued script inside plugin
- I changed .live() to .on() but change is not reflected on the server
- wp_dequeue_script for a Plugin
- Creating a widget and missing jQuery
- How to do the simplest possible frontend ajax call from a plugin?
- Stop wordpress from requesting external jquery from googleapi
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Save user total active time after login in wordpress [closed]
- Opening a JQuery modal window on click of a button with a JQuery plugin
- Custom plugin – load enqueue only for this plugin
- Api external with wordpress
- Why does my jQuery plugin show up as text in WordPress?
- JQuery needs to be defined in , but Gravity Forms is defining it in the
- How do I make sure that my plugin only runs on article detail pages?
- jQuery plugin not loading
- Disable submit button order
- Why do I get jQuery reference error / undefined when changing name of plugin file?
- Deregister scripts from plugin
- How to request admin-ajax.php correctly when wordpress URL and site URL are different?
- Custom meta box with jQuery.sortable custom post type list
- How to include my Ajax calls in one function instead of calling different ones every time?
- How to prevent tabs from opening all at once
- Why jquery option is not working when pass value using wp_localize_script?
- Custom CSS not being added by plugin
- Load CSS files in header of Bones theme?
- jQuery code didn’t run on my plugin
- The Events Calendar Plugin – List View Background Colour Issue [closed]