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]
- How can I make default jquery version of WordPress “async”?
- Get php var inside javascript file (making plugin)
- How to Add jQuery Infinite Scroll to My Custom Archive Page
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Editor not displaying dynamically after clicking on the button
- Use js script from one plugin in another plugin
- Check javascript file Proper way in functions.php
- Very stubborn wp_register_script / add_action vs remove
- WordPress Plugin development Call to undefined function jQuery()
- Restrict backend but allow to use post.php?action=delete&post=POSTID from front-end
- WP deregister, register and enqueue dequeue
- Is it possible to add an action to the currently running action?
- Adding jQuery dependency prevents my script from enqueuing/loading
- wp_enqueue_scripts not working inside shortcode
- How to create popup same as wordpress popup feature
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- WordPress 3.5 Media Manager – add a button
- Add get_option to jquery
- Check if email address exists front end with AJAX in a plugin
- Avoiding Duplicate function names in Post Loop (WP_Footer script)
- Confused about shortcode and settings values
- Running jquery script after shortcode [closed]
- Preview featured image using frontend post plugin
- Move jQuery to the bottom of the page whilst keeping the WordPress jQuery
- How to add a full edit link to front-end editor?
- Making a plugin only available on the front-end for the logged in super admin
- Change upload folder for a CPT
- Redux Framework: Page freezes on typing in Editor
- How can I inject options into an select tag inside the widget form?
- How to call plugin functions in a custom template
- Jquery NoConflict Problem
- this jQuery function works perfect in static html page but not on wordpress
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- “Conflict” with jQuery (or its plugins)?
- Remove Yoast jQuery from front end
- How to display checked posts on another page over AJAX? (like comparasion style)
- Adding media upload button to User Profile page (following a tutorial)
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Opening a JQuery modal window on click of a button with a JQuery plugin
- How do I make sure that my plugin only runs on article detail pages?
- jQuery plugin not loading
- Deregister scripts from plugin
- How to request admin-ajax.php correctly when wordpress URL and site URL are different?
- Why jquery option is not working when pass value using wp_localize_script?
- jQuery code didn’t run on my plugin
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- “switchEditors is not defined” with wp_editor() in jQuery UI tabs
- How to auto strip hyperlinks & images in wordpress post
- Ajax request sends url rather than data
- sliding/fading header plugin or approach suggestion
- Cannot read properties of undefined (reading ‘firstChild’) using photoswipe in product page
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- wc_get_template_part doesnt display the content [duplicate]
- Cannot pass value variable to WP AJAX functions
- How to properly enqueue jQuery knob on WordPress without conflict?
- How to get a specific string from a url
- Does anybody know how to insert a complete jquery plugin into a wordpress elementor-page?
- $wpdb not working wordpress plugin ajax call
- Scroll to ID broken in main menu
- WordPress Thickbox Navigation Issue in Gallery
- Dynamic input fields in WordPress Plugin
- How to fix blog article view and share #’s?
- Not displaying Woocommerce product page in lightbox
- Problem in functions.php file
- show-hide based on select option jquery wordpress
- Add HTML between feed items
- WordPress Feedback popup with date saved into table
- WordPress ajax not working in registration
- Working on fixing wp-front-end-editor, encountering undefined index
- plugin’s script and style enqueing not working on Thesis
- WordPress User Frontend Editing Custom Fields
- “The Events Calendar” Issues in WP 3.2
- Element works, but not on wordpress site [duplicate]
- WordPress site keeps getting flagged as malware [closed]
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- TypeErrors with Yoast, jQuery in conflict?
- Count div with class (.length) only shows 0 [closed]
- Jquery post responses 500 error after some time and lastly an 503 error
- Ajax button “Load more” is not loading correct language version posts for logged out users