Include MB Conditional Logic into theme

Support MB Conditional Logic Include MB Conditional Logic into theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4117
    solopinesolopine
    Participant

    Hi there,

    I'm trying to include the Conditional Logic plugin into my theme using the "Include the extension directly" method seen here: https://metabox.io/docs/include-extensions-themes-plugins/

    Here's what I've done:

    1. Copied the meta-box-conditional-logic folder into my theme in a subfolder called "functions".
    2. In my functions.php file I got the following:

    require get_template_directory() . '/functions/meta-box-conditional-logic/meta-box-conditional-logic.php';

    This does not seem to work, I'm getting the following console error:

    GET http://localhost/XXXXXXX/wp-content/plugins/C:/wamp/www/XXXXXXX/wp-content/themes/laurel/functions/meta-box-conditional-logic/assets/js/conditional-logic.min.js?ver=1.3.1 403 (Forbidden)

    If I upload the plugin as a plugin it works. But not when I try the method above. Any idea why?

    Cheers

    #4121
    Tan NguyenTan Nguyen
    Participant

    Dear solopine,

    Thanks for using our plugin. Previously, users have to define MBC_JS_URL constant if they want to include it to their own theme, that's why you got that bug. Sorry for inconvenience. We've just updated the plugin and it not requires you to define that constant. Please grab the latest version (1.3.3).

    Cheers!

    #4123
    Anh TranAnh Tran
    Keymaster

    Glad to see you here @solopine :). Your themes are great!

    #4134
    solopinesolopine
    Participant

    Thanks so much guys!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Include MB Conditional Logic into theme’ is closed to new replies.