![]() ![]() This sounds like the correct approach to me. ![]() To override previous parent theme scripts (replacement with same file name) I deregister > register new one > then enqueue (register with the five arguments and enqueue just with file name as handle) This topic was modified 1 week, 5 days ago by Mauro Vicariotto. hence it results to me that using parallel paths with same structure the deregistration process is automatic) (PS: I also repeat that, even if recently applied the deregister/register method, if you change a theme script is assets/js using the same script name, the parent’s script is automatically overridden by the child’s script. I kindly ask if my above methods (from 1 to 4) are the appropriate ones according to recent standards of WP: in my opinion it is useful to clarify for everyone (thanks in advance).
0 Comments
Leave a Reply. |