I've installed WP using Bedrock. The common WP directories are there, but at a different path.
After installing Salient, everything seemed ok, until I wanted to use the Demo Importer. There were no images visible, and the 'import demo' button doesn't work. A quick inspection of the source revealed an invalid assets-url, as it includes my local url as well as the path to my local folder.
Thanks, but that's not my question (should've been more specific on that, sorry)
I don't want to replace the whole URL, I want to fix the code that generates that URL, so the importer will work again. But on the other hand, I don't want to mess up theme files, because they will be undone on updates.
Hi,
I've installed WP using Bedrock. The common WP directories are there, but at a different path.
After installing Salient, everything seemed ok, until I wanted to use the Demo Importer. There were no images visible, and the 'import demo' button doesn't work. A quick inspection of the source revealed an invalid assets-url, as it includes my local url as well as the path to my local folder.
This is what I see:
This is how it should be:
I want to fix the code that generates that URL, but make it a fix that won't be undone when the theme is updated.
Thanks!
Hey Again,
Try using this plugin " https://wordpress.org/plugins/better-search-replace/ .
Best
ThemeNectar Support Team
Thanks, but that's not my question (should've been more specific on that, sorry)
I don't want to replace the whole URL, I want to fix the code that generates that URL, so the importer will work again.
But on the other hand, I don't want to mess up theme files, because they will be undone on updates.
Hey Again,
Unfortunately we dont have any solution available for it at the moment .
Be.st
ThemeNectar Support Team
Alright thanks, I will use the 'ugly' solution from @codeandteam for now:
The offending lines seem to be 43 and 48 in /salient/nectar/redux-framework/extensions/wbc_importer/wbc_importer/field_wbc_importer.php
-------
As a workaround to anyone else using Bedrock and looking for this, change line 43 to
$this->demo_data_url = home_url( '/app/themes/salient/nectar/redux-framework/extensions/wbc_importer/demo-data/' );
and line 48 to
$this->extension_url = home_url( '/app/themes/salient/nectar/redux-framework/extensions/wbc_importer/wbc_importer/' );