change javascript from theme in childtheme
-
Hi I am making a childtheme and I know had to change stuff in the css and some of the php files, but I now have a problem with a javascript.
The theme is Make,
the Javascript is edit-page.js,
the line that is troubling me is:// Builder template is selected by default self.cache.$pageTemplate.val('template-builder.php');
This line makes a specific template my standard template instead of the standard template…
And I want the standard template to be my standard.I know close to nothing about javascript unfortunately.
The problem is solved if I remove that line from the script, but of course I don’t want to alter the original script, I want to do it in the childtheme.Do I need to replace the entire javascript with a copy without the line, and how would I do that?
Or is it possiple to write something (in my functions.php for example) that would just get rid of that line (and keep the rest of the original javascript)
Or is it possible to write a bit of script that would overrule the javascript in the choice of standard template.I hope I explaned it clearly, if you can help but need more info let me know!!
Thanks in advance ??
- The topic ‘change javascript from theme in childtheme’ is closed to new replies.