How to use theme scripts in custom template files.
-
Hello,
I ask you please to help me solve this problem.
I am creating a site (currently locally) with the oceanwp theme (I am currently working on the child theme), but without having Elementor installed.
I created a custom template file in order to insert a carousel gallery that opens with a lightbox.
I saw that in the theme there are already the scripts that allow you to do this (lightbox and slick) and they are obviously all enabled in the theme panel. Can anyone please tell me the code that allows me to invoke the scripts already installed in the parent theme within the file where I am building the gallery (in the of the child theme)?
I don’t think it’s appropriate to download a plugin or load external libraries if the code I need is already present in the theme.I have already searched both in the documentation and on the web, but I could not find a solution.
Thanks in advance for the help!
- The topic ‘How to use theme scripts in custom template files.’ is closed to new replies.