• Resolved vayoka

    (@vayoka)


    Web page NB1600 is designed in Visual Composer
    http://13.54.28.169/products/routers/nb1600-industrial-router/

    This creates a custom CSS for that page

    .vc_custom_1490272535891 {
    padding-top: 50px!important;
    padding-right: 50px!important;
    padding-bottom: 50px!important;
    padding-left: 50px!important;
    background-color: #e9ce3f!important;
    }

    We are using “Improved Include Page” to include the content from NB1600 into our test page
    http://13.54.28.169/include-test/

    However, the plugin does not include the CSS styling from Visual Composer

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marios Alexandrou

    (@marios-alexandrou)

    Visual Composer and other page builders aren’t specifically supported by the plugin.

    Thread Starter vayoka

    (@vayoka)

    Hi Marious,

    Would you consider developing the integration into VC for us?

    Andrew

    Plugin Author Marios Alexandrou

    (@marios-alexandrou)

    Not at this time. However, if you hire another developer and they produce a well-coded update to the plugin I’d consider adding their code to the plugin.

    We managed to do so by adding the following (+) lines to the iinclude_page.php
    This patch not only fixes the CSS problem but also the loading of content that VC performs by AJAX

    First change block:

    $content = $page->post_content;
    
    +//Change $post variable
    +$post_aux = $post;
    +$post = $page;
    
    // stripslashes fixes an issues found by Nikhil Dabas which outputs too many slashes if the more tag is an image

    Second change block:

    $content = str_replace( ']]>', ']]>', $content );
    
    +if (class_exists('Vc_Base')) { 
    +  $vc = new Vc_Base();  
    +  ob_start();
    +  $vc->addPageCustomCss();
    +  $vc->addShortcodesCustomCss();
    +  $content .= ob_get_clean();
    +}
    +//Change $post variable back
    +$post = $post_aux;
    
    $out .= $content;

    It would be great if @marios-alexandrou can review this and if it’s OKay include in the next update.

    Thanks
    Nico

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Visual Composer custom CSS’ is closed to new replies.