Forum Replies Created

Viewing 1 replies (of 1 total)
  • 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 1 replies (of 1 total)