I traced this back to the name of the scripts.js JavaScript file.
My parent theme (BeTheme) enqueues the main scripts.js like this:
wp_enqueue_script('mfn-scripts', get_theme_file_uri('/js/scripts.js'), array('jquery'), MFN_THEME_VERSION, true);
In my child theme crmpiccodotcom/footer.php I enqueue the scripts.js like this:
// include the crmpiccodotcom child theme JavaScript
add_action('wp_enqueue_scripts', 'crmpiccodotcom_enqueue_scripts');
function crmpiccodotcom_enqueue_scripts() {
wp_enqueue_script(
'custom-script',
CHILD_THEME_URI. '/js/scripts.js',
array('jquery')
);
}
Seemingly the name caused a clash and the BeTheme used the child theme’s scripts.js instead of it’s own, so the fix was to rename the child theme scripts.js -> crmpicco-scripts.js
I believe the issue lies with the BeTheme, which I will take up with them, but certainly a file rename resolves this.
Related Posts:
- Question about the way that wp_register_script works
- My scripts-bundle.js file is getting sent to the browser as a stylesheet css file. Help!
- Is it possible to access Gutenbergs reusable blocks in CPT block templates?
- Jquery in Child Theme
- How to remove “Proudly powered by WordPress” in Twenty Sixteen (2016) theme?
- Want to have the Post editor remembering the last editing position
- When does WordPress wrap inline scripts in CDATA?
- Can I share predefined fonts from theme_support with a gutenberg component?
- Add js into a theme [closed]
- What’s the proper way to include inlined javascript-source?
- Understanding Theme specific Code
- Retina JS not working
- How do I get rid of or change the footer in my child theme?
- JavaScript Files Registered in Parent Theme Won’t Load When Calling wp_enqueue_script() in Child Theme?
- Error defining a gutenberg block in a theme
- How do you approach block structured content?
- How can I add class to every quote element?
- Angular integration with homepage
- Twenty fifteen theme – change responsive menu condition
- how do i in ignore/disable/delete a javascript call from parent in child theme?
- What’s a good way to unenqueue all scripts for a single template page?
- Can “Classic Editor” plugin help to replicate the old website / theme development experience from c. 2011?
- Using JQuery to check for Rel Attribute of Image before Overriding It
- Getting a ‘slide down’ js panel implemented within WP
- On click load iframe [closed]
- How to add more default colors?
- Changing URL of scripts, scripts outside theme folder?
- How to use only scripts from new theme?
- conditional statement if wordpress theme block is empty then hide block
- Webflow Interactions on WordPress site?
- share wrordpress data between two shared hosts using REST API
- How to add extra custom social icons to page with same style?
- How to customize a section of a widget only on certain pages or page
- How to fix Gutenberg with SiteOrigin page builder deleting content when editing
- Will this js code work in a page template?
- Analytics causes website to crash
- JQuery Error in theme for .live is not a function [closed]
- Divi theme including javascript
- Should you directly edit Template Parts and Templates from themes?
- Setting colors in theme.json changes default font size and family in backend
- Help!!! Old theme doesn’t load scripts and conflitcs with plugins
- I am unable to remove “© 2022 My Blog | PopularFX Theme ” from footer [closed]
- How to remove pop up on website (css changes not visible)?
- WordPress Editor Missing Padding and Background Color?
- Problems with the PluginDocumentSettingPanel SlotFill in Gutenberg
- How to change background color in the Notepad++ text editor?
- What are all the available parameters for query_posts?
- Does WordPress work without a theme?
- Is it OK to remove theme credits from footer? [duplicate]
- What theme is good for posting code? [closed]
- Difference between stylesheet_directory and template_directory
- Adding a Template to the Page Attributes Panel for both Posts and Pages?
- Is there a core Sortable component in Gutenberg?
- Gutenberg Blocks doesn’t render correctly when using do_blocks
- WordPress generating 404 on .mp4 file in theme folder
- Why are my widgets not saving when being added to a sidebar?
- Building useful features into your theme
- How do I put my comment form above the comments?
- Editing theme files and access to the Code pages only to super-admin?
- Edit theme wp_head
- Current theme broken – after server and domain migration
- Theme Advanced Styles in Visual Editor and Paragraphs
- Enqueue different stylesheets using IE conditionals
- Proper Javascript Implementation
- Categories for Pages Not Saving in Admin with Custom Categories Metabox?
- Switch Theme Through Options Panel
- Override parent theme translation on child theme
- Forbidden 403 error, permission to access, unable to read htaccess
- Looking for callback function after Gutenberg is rendered?
- Gutenberg Modify core taxonomy panel element via wp.hooks.addFilter
- How get Themes list via REST api?
- Activate a new WordPress Theme Only for Admins
- WordPress Fatal error: Call to undefined get_header() in index.php on line 15 [closed]
- What is “open()” in MediaUpload?
- How to add template to theme in WP
- How do I copy my Parent Templates to my Child Templates?
- How can I show more than 15 themes at a time in the admin menu?
- What is the WordPress Pinecone sitting on top of? [closed]
- Theme Editor Not Showing
- Pros and cons of using Backbone for WordPress theming [closed]
- Can I create multiple instances of the BuddyPress Activity Stream with separate themes? [closed]
- How to load parent theme style.css?
- How can I add Block Style support to the core HTML block in Gutenberg?
- Overwrite or Replace code in WP_Footer
- How to setup a new WordPress theme without deactivating the current theme?
- WordPress is not able to change themes
- How do I set the featured image size on the single post?
- Using custom JS plugins with WordPress?
- I have some doubts regarding how to implement child theme
- wp_register_script(… $in_footer = true) not working
- Inconsistent translation on a WP site
- how to remove category nav from Bueno (WordPress Theme) header [closed]
- Gutenberg: Block validation Failed Richtext undefined
- Add custom HTML markup to Gutenberg RichText
- Do I have to worry about useState causing a re-render?
- How can I have different theme with same booking table? [closed]
- Updating my free theme delete all my changes [closed]
- Web site Header tag links some resources with HTTPS
- Do not show one specific widget on one specific page
- customize color in WP child theme doesn’t saved