visual-composer

Initializing Visual Composer upon Ajax content load

荒凉一梦 提交于 2019-12-12 01:57:23
问题 Basic Structure below, have an ajax script that replaces the div inner-content and updates the menu, pushes history states, fade in/out contents ect.. The inner-content contains a foundation grid row and content of wordpress editor lives inside that container. Now here is the issue... when using any Visual composer function that requires javascript triggers, Full width Span, slider, animations nothing gets loaded again when my ajax function triggers a content replace. Here is part of my code

Wordpress Visual Composer Strech Row and Direction RTL

谁说我不能喝 提交于 2019-12-07 17:06:00
问题 When I try to strech row in the row settings in Visual Composer, the row streches, but the position of the row is all wrong. It happens only when body direction has direction:rtl css setting. Website is online: http://ono.devurl.net/?page_id=871 Any way of fixing that? Yuval. 回答1: Yuval Hey ! Try this script to fix your problem. if( jQuery('html').attr('dir') == 'rtl' ){ jQuery('[data-vc-full-width="true"]').each( function(i,v){ jQuery(this).css('right' , jQuery(this).css('left') ).css( 'left

render Visual Composer shortcodes onto page

有些话、适合烂在心里 提交于 2019-12-06 18:06:43
问题 I am trying to echo visual composer shortcodes onto a page. I've tried both methods below, but they don't work: functions.php: Method 1 /* * add shortcode file */ function include_file($atts) { $a = shortcode_atts( array( 'slug' => 'NULL', ), $atts ); if($slug != 'NULL'){ ob_start(); get_template_part($a['slug']); return ob_get_clean(); } } add_shortcode('include', 'include_file'); Method 2 function someshortocode_callback( $atts = array(), $content = null ) { $output = "[vc_section full

Wordpress Visual Composer Strech Row and Direction RTL

ε祈祈猫儿з 提交于 2019-12-05 20:26:30
When I try to strech row in the row settings in Visual Composer, the row streches, but the position of the row is all wrong. It happens only when body direction has direction:rtl css setting. Website is online: http://ono.devurl.net/?page_id=871 Any way of fixing that? Yuval. Yuval Hey ! Try this script to fix your problem. if( jQuery('html').attr('dir') == 'rtl' ){ jQuery('[data-vc-full-width="true"]').each( function(i,v){ jQuery(this).css('right' , jQuery(this).css('left') ).css( 'left' , 'auto'); }); } Put this script code in jQuery(window).load. hope this'll help you :) Could be easier to

Disable prettyPhoto WordPress (Visual Composer)

两盒软妹~` 提交于 2019-12-04 03:50:37
Hi I'm trying to get WP Featherlight setup as the default lightbox, right now Visual Composer is using prettyPhoto. So I need to disable it, so that WP Featherlight will overwrite it. I asked wpbakery and I got this response. Hello, you can actually overwrite prettyphoto by adding prettyPhoto() in your functions.php and call another lightbox. And from the plug-in author I got this: Once prettyPhoto has been disabled, you shouldn't need to do anything else to lightbox images on the site. So it's pretty clear what I need to do. Disable prettyPhoto. But I don't know how to do that. Can I add a

Insert PHP code into the Visual Composer

被刻印的时光 ゝ 提交于 2019-12-01 01:46:46
I have the php code (ACF Pro plugin code). How can I insert this code into my Visual Composer? Can't find the solution for a long time but now it's critical for me. <?php if( have_rows('add_a_new_table') ): ?> <?php while( have_rows('add_a_new_table') ): the_row(); // vars $t_title = get_sub_field('t_title'); $t_pricing = get_sub_field('t_pricing'); $t_emails_number = get_sub_field('t_emails_number'); ?> <div class="col-sm-12 col-sm-4 text-center"> <div class="courses-column"> <div class="courses-column-inner"> <h3><?php echo $t_title; ?></h3> <p style="font-size: 24px;"> <?php echo $t_pricing