Trying to use this theme on a modern wordpress development stack that uses composer to install wordpress and where the directory layout is totally different from base install. Check https://github.com/roots/bedrock to see how the directory structure is layed out.
My problem is that since the directory structure is different the the salient theme options fail to load the proper css and js resources. It works if I install wordpress the regular way.
Is there way to fix this so resources load however wordpress is installed?
Further investigation I think it has more to do with absolute paths being used. If you look at attached screenshot of browser console errors, the path to the resources are absolute and seems to be the problem
I'm having the same problem, lot of resources can't be loaded because the WP folder structure is not the default and Redux_OPTIONS_URL is also the culprit. I see you are using Redux Framework 1.0 and it looks like this should be fixed with newer versions.
Trying to use this theme on a modern wordpress development stack that uses composer to install wordpress and where the directory layout is totally different from base install. Check https://github.com/roots/bedrock to see how the directory structure is layed out.
My problem is that since the directory structure is different the the salient theme options fail to load the proper css and js resources. It works if I install wordpress the regular way.
Is there way to fix this so resources load however wordpress is installed?
Thanks in advance.
Further investigation I think it has more to do with absolute paths being used. If you look at attached screenshot of browser console errors, the path to the resources are absolute and seems to be the problem
Redux_OPTIONS_URL seems to be a culprit for my issue also.
In 'nectar/options/' I noticed if I changed for instance:
$this->url . 'js/options.js' to NECTAR_FRAMEWORK_DIRECTORY . 'options/js/options.js'
Hey!
Thanks for bringing this to light. I have notified the author so he can sort this out for the next update.
Cheers
ThemeNectar Support Team
Hello, how is this issue going?
I'm having the same problem, lot of resources can't be loaded because the WP folder structure is not the default and Redux_OPTIONS_URL is also the culprit. I see you are using Redux Framework 1.0 and it looks like this should be fixed with newer versions.
https://github.com/ReduxFramework/redux-framework/...
Any fix or update?
Thanks
Hey Manel!
I've noted to try and sort this for the next minor update :)
Hi Nectar,
I'm my case this seems to work:
$fslashed_dir = get_bloginfo('template_directory').'/nectar/options/';
$fslashed_abs = get_bloginfo('url').'/assets/themes/salient/nectar/options/';
It could be great if you could fix it in the next update.
Thanks
Indeed, it's on the to-do list to sort out for the next minor release. Thanks for posting your solution :)
Cheers