child theme vs plugin CSS and JS editor
-
Hi. Does anyone know if there is any advantage to creating a child theme, or to instead use a wordpress plugin that allows you to apply style and javascript to your existing theme in the word press dashboard?
For example I am using the free responsive theme, and I created a child theme for that. But I noticed it has the build in capability to allow a stylesheet to be applied to it, and also for JavaScript to be inserted in the header and or footer.
However I have found that with the child theme, when I applied a custom JS file, it seemed like the libraries were not being included as I kept getting errors in the dev console no matter how simple of code I tried (console.log worked). I tried the same thing in the build in JS plugin and got the same errors, but that could be because of my functions.php file in my child theme screwing things up. Maybe if I just deleated the child theme, used the built in stylesheet, then the build in JS would have access to the library.
Thoughts?
- The topic ‘child theme vs plugin CSS and JS editor’ is closed to new replies.