Good evening all,
My customer has just upgraded their theme for two sites on their multisite installation the main site and the subsite for the forum sitename.com/forum
When you make a wordpress child theme can you have a custom js folder that it will call instead of the default/parent so I can comment out the two offending scripts without breaking the features on the main site.
I hope this makes sense I'm not sure how else to explain it.
I'm 99% sure that child themes only cater for stylesheet, templates and overlays I'm afraid.
Perhaps Mr Papa can clarify this when he is online later, but as far as I'm aware it's down to where the core plugin looks for theme files. It will start by loading the parent theme, then specifically look for these child elements and load them over the top.
Sorry, but like I said, if there is any way of doing it I'm sure we will find out!
Thanks for the reply. I have an idea can you offer your opinion as to if this might work.
If I then paste in the commented out script into this box on the main site it will allow these features again and allow the toolsets to work again on the forum subsite and I'll ahve another happy customer?
Again, I can't be positive, but say if it were PHP that is how it would work.
you can make your child theme load different js, but it may take modification or use of many parent theme files in the child... depends on how the parent loads it... if directly from functions.php then you just need a new one in the child... if the theme has a deep hierarchical structure, you may have to copy over many files just to get to the location where you can change it..