Okay
  Public Ticket #2400018
migrate from vanilla Visual Composer
Closed

Comments

  • coreyshelson started the conversation

    We are in the process of moving a site over from a custom theme to Salient. The old site used WPBakery. Since Salient also uses WPBakery, we figured we should be able to swap out the theme, load up the salient flavour of WPBakery, and be able to keep all of the structure that's already there. Understandably, lots of things will have to be re-styled, we get that.

    However, this site uses vc_section elements in WpBakery, and Salient doesn't render those. They just show up as shortcodes in the front end. Is there a process for fixing this and migrating all of our content to Salient's WPBakery?

  •  8,990
    Tahir replied

    Hey Again,

    No i am afraid thats not possible as we use a Customized Version of the WPBakery Plugin . After Switching to Salient you will have to recreate the pages or remove the extra vc codes. 

    Also see: http://themenectar.com/docs/salient/salient-studio/ and use the Pre-built layouts to quickly setup the pages. 

    Thanks 


    ThemeNectar Support Team 

  •  1,089
    ThemeNectar replied

    Hey Corey,

    If you don't mind some minor code editing, it can be achieved with two steps.

    1. Add this into your child theme functions.php file:

    add_action( 'init', 'salient_child_add_section', 1 );
    function salient_child_add_section() {
        $vc_config_path = vc_path_dir( 'CONFIG_DIR' );
        vc_lean_map( 'vc_section', null, $vc_config_path . '/containers/shortcode-vc-section.php' );
    }
    

    2. Edit the file wp-content/plugins/salient-core/includes/nectar-addons.php and delete the following line (should be around line 187):

    vc_remove_element("vc_section");
    
    Cheers