Changed location of react components to .../assets/js/react/components
This commit is contained in:
@ -40,25 +40,6 @@ function lcp_backend_enqueue() {
|
||||
|
||||
add_action('admin_enqueue_scripts', 'lcp_enqueue');
|
||||
|
||||
// Backend enqueue
|
||||
function lcp_enqueue_svg_repeater_script($hook) {
|
||||
// Only enqueue on the theme settings page
|
||||
// if ($hook !== 'settings_page_lcp-theme-settings') {
|
||||
// return;
|
||||
// }
|
||||
|
||||
// Enqueue the script with a dependency on jQuery
|
||||
wp_enqueue_script(
|
||||
'lcp-svg-repeater', // Handle for the script
|
||||
get_template_directory_uri() . '/assets/js/backend-script.js', // Path to your JS file
|
||||
array(), // Dependency on jQuery
|
||||
null, // No specific version
|
||||
true // Load in footer (true)
|
||||
);
|
||||
}
|
||||
add_action('admin_enqueue_scripts', 'lcp_enqueue_svg_repeater_script');
|
||||
|
||||
|
||||
|
||||
/* KEY POINTS */
|
||||
function add_key_points_meta_box() {
|
||||
|
||||
Reference in New Issue
Block a user