Hi there, first of all: really love your theme and the ongoing updates which are just great!
I recognized that with the newer version the use of the init.js has changed and its now a minified version in the build folder. I tried to replace with the unminified file from src folder (which is crashing the site). The reason why i tried moving the files is cause i need to make some edits on the unminified init.js ... how is this possible with the new structure?
Hello, ok but i can't make needed changes to existing functions if i'm not able to edit the init.js. If this is not possible anymore i'm sorry but then i simply had to use a different theme in future ... so if there's an option please let me know. This is really important for advanced users and was always possible with your theme.
You can force the src directory to be used for all assets instead of the build directory (mimicking earlier versions) by adding the following snippet to your child functions.php:
add_filter('nectar_dev_mode', 'salient_child_dev_mode');
function salient_child_dev_mode() {
return true;
}
Hi there, first of all: really love your theme and the ongoing updates which are just great!
I recognized that with the newer version the use of the init.js has changed and its now a minified version in the build folder. I tried to replace with the unminified file from src folder (which is crashing the site). The reason why i tried moving the files is cause i need to make some edits on the unminified init.js ... how is this possible with the new structure?
Many thanks in advance
Hey Again,
We would not suggest editing the "init.js" file rather inject Custom JS code.
Thanks
ThemeNectar Support Team
Hello, ok but i can't make needed changes to existing functions if i'm not able to edit the init.js. If this is not possible anymore i'm sorry but then i simply had to use a different theme in future ... so if there's an option please let me know. This is really important for advanced users and was always possible with your theme.
Hi Fantomas,
Allow me to escalate this to the developer to respond further.
Thanks.
Hey fantomas_98,
You can force the src directory to be used for all assets instead of the build directory (mimicking earlier versions) by adding the following snippet to your child functions.php:
Kind regards,