Okay
  Public Ticket #192778
Visual Composer Plugins
Closed

Comments

  • Yan started the conversation
    Hi. How I can install plugins to Visual Composer in your theme?
  • Yan replied

    And how can I disable VC in PowerMag if I have a standalone version? I know that the new version of the theme VC works differently. But my version PowerMag 1.6 and I can't update theme because I modified  some files. How I can disable VC in my theme?

  •  93
    djwd replied

    Hi, you could disable it by commenting out/removing this part of code in functions.php (around line 260)

    /*
    ==========================================================
    PAGE BUILDER INITIALIZATION
    ==========================================================
    */
    	
    $dir = dirname(__FILE__) . '/inc/';
     
    $composer_settings = Array(
        'APP_ROOT'      => $dir . '/js_composer',
        'WP_ROOT'       => dirname( dirname( dirname( dirname($dir ) ) ) ). '/',
        'APP_DIR'       => basename( $dir ) . '/js_composer/',
        'CONFIG'        => $dir . '/js_composer/config/',
        'ASSETS_DIR'    => 'assets/',
        'COMPOSER'      => $dir . '/js_composer/composer/',
        'COMPOSER_LIB'  => $dir . '/js_composer/composer/lib/',
        'SHORTCODES_LIB'  => $dir . '/js_composer/composer/lib/shortcodes/',
        'default_post_types' => Array('page', 'post')
    );
     
    require_once locate_template('/inc/js_composer/js_composer.php');
     
    $wpVC_setup->init($composer_settings);
    
    // Disable unwanted modules
    wpb_remove("vc_teaser_grid");
    

    Regards
    djwd

    Regards
    djwd

  • Yan replied

    Thank you!
     

    Can I then delete this folder?

    wp-content/themes/powermag/inc/js_composer

  •  93
    djwd replied

    Yes there shouldn't be any problem by deleting it once you remove the initialization code.

    Regards
    djwd

    Regards
    djwd

  • Yan replied

    Thanks