Title: Visual Composer custom CSS
Last modified: September 3, 2017

---

# Visual Composer custom CSS

 *  Resolved [vayoka](https://wordpress.org/support/users/vayoka/)
 * (@vayoka)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/visual-composer-custom-css/)
 * Web page NB1600 is designed in Visual Composer
    [http://13.54.28.169/products/routers/nb1600-industrial-router/](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/](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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fvisual-composer-custom-css%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Marios Alexandrou](https://wordpress.org/support/users/marios-alexandrou/)
 * (@marios-alexandrou)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/visual-composer-custom-css/#post-9465173)
 * Visual Composer and other page builders aren’t specifically supported by the 
   plugin.
 *  Thread Starter [vayoka](https://wordpress.org/support/users/vayoka/)
 * (@vayoka)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/visual-composer-custom-css/#post-9465199)
 * Hi Marious,
 * Would you consider developing the integration into VC for us?
 * Andrew
 *  Plugin Author [Marios Alexandrou](https://wordpress.org/support/users/marios-alexandrou/)
 * (@marios-alexandrou)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/visual-composer-custom-css/#post-9465213)
 * 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.
 *  [elnico](https://wordpress.org/support/users/elnico/)
 * (@elnico)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/visual-composer-custom-css/#post-9614946)
 * 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](https://wordpress.org/support/users/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.

 * ![](https://s.w.org/plugins/geopattern-icon/improved-include-page_709cd7.svg)
 * [Improved Include Page](https://wordpress.org/plugins/improved-include-page/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/improved-include-page/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/improved-include-page/)
 * [Active Topics](https://wordpress.org/support/plugin/improved-include-page/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/improved-include-page/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/improved-include-page/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [elnico](https://wordpress.org/support/users/elnico/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/visual-composer-custom-css/#post-9614946)
 * Status: resolved