Okay
  Public Ticket #194413
Theme Options not working
Closed

Comments

  • DeAndre started the conversation

    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.

  • DeAndre replied

    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

  • DeAndre replied

    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'

  •  8,839
    Tahir replied

    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 

  • [deleted] replied

    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

  •  1,070
    ThemeNectar replied

    Hey Manel!

    I've noted to try and sort this for the next minor update :)

  • [deleted] replied

    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

  •  1,070
    ThemeNectar replied

    Indeed, it's on the to-do list to sort out for the next minor release. Thanks for posting your solution :)

    Cheers