visual-composer

How to load visual composer during using ajax in wordpress

最后都变了- 提交于 2021-01-24 10:48:08
问题 I used an ajax request in Wordpress to get the content of a post, in that post i used the Visual Composer. but the content shows only the VC shortcodes with out changing them to the real content.. That is the code that i used add_action( 'wp_ajax_drpk_custom','drpk_custom' ); add_action( 'wp_ajax_nopriv_drpk_custom','drpk_custom' ); function drpk_custom(){ if(isset($_REQUEST)){ $id = $_REQUEST['id']; $query = new WP_Query(array('p'=>$id)); if($query->have_posts()): while($query->have_posts())

Is it possible to arrows on a pageable container (visual composer)?

血红的双手。 提交于 2020-06-16 03:26:38
问题 I'm working on my WordPress website with Visual Composer. I need to include a pageable container but it would be great if it can be like a slideshow. This is my pageable container Thanks in advance, Regards :) 回答1: Based upon the current version of WP Bakery Page Builder the below works for me: To build it I created a row with 3 columns, with the pageable container in the middle column and the left and right arrow images in the columns on either side. Both arrow images and the pageable

How do I access vc_map() internal values to create custom markup for WPBakery interface?

痞子三分冷 提交于 2020-02-05 03:30:31
问题 A similar question has been asked here, without any viable responses: Visual Composer custom markup for custom shortcode (vc_map) and here: Visual Composer custom shortcode template - custom_markup display user input I am trying to create custom markup within the WPBakery interface. I can add custom markup no problem by doing: $markup = 'test'; vc_map( array( "name" => __("MyShortcode"), "base" => "myshortcode", "category" => __('Content'), "custom_markup" => $markup, // @TODO how do we

Disable prettyPhoto WordPress (Visual Composer)

試著忘記壹切 提交于 2020-01-01 09:04:11
问题 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

Adding new Icons to Visual Composer

£可爱£侵袭症+ 提交于 2019-12-24 03:02:23
问题 I am trying to add a new font icon set to Visual Composer and although the name is appearing in the dropdown; No dropdown for the actual font icons are being loaded and I cannot figure out what's missing or wrong with my code below. Any help would be much appreciated. // Add new custom font to Font Family selection in icon box module function reach_add_new_icon_set_to_iconbox( ) { $param = WPBMap::getParam( 'vc_icon', 'type' ); $param['value'][__( 'Reach Icons', 'reach-rdp' )] = 'reach_icons'

Insert PHP code into the Visual Composer

五迷三道 提交于 2019-12-19 04:43:06
问题 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=

Visual Composer custom query with OR operator

梦想的初衷 提交于 2019-12-13 08:04:45
问题 I am working with Wordpress via Visual Composer and a post grid of results from The Events Calendar. I have the query working as long as I only want to pull from one events category but I need to pull from multiple categories. I have tried all of the tricks using OR operators and cannot get this to work. The code I have that works to pull from one category: post_type=tribe_events&post_status=publish&_EventStartDate=>$today&orderby=_EventStartDate&order=asc&tribe_events_cat=entertainment I

Visual Composer not showing specific page styles

北战南征 提交于 2019-12-13 02:55:21
问题 When I view regular page from visual composer, it works fine like this: http://vrshealth.com/qc2 Margins, backgrounds, etc are all working. I needed to make a custom post type "quality-check" and am using archive-quality-check.php to display this and the vc-custom-xxxx styles are not loading for some reason: http://dev-vrshealth.pantheonsite.io/quality-check/ I did some research and the only thing I could find is that page-specific VC styles don't work with Ajax-loaded pages. But it is not

reload visual composer grid after ajax call

戏子无情 提交于 2019-12-12 05:26:55
问题 I am currently implementing barba.js in a wordpress theme. I have managed to make most of the javascript functions to work properly after page change except the VisualComposer grid. Reading this thread I have managed to make Visual composer basic functions work except the grid via window.vc_js(); If I add window.resize(); I get a window.resize is not a function error. In quite a few pages I also get the same error with window.vc_js() - window.vc_js is not a function How can I initalize the vc

Change fixed image when scrolling

半世苍凉 提交于 2019-12-12 04:12:44
问题 I'm trying to have a fixed image change when i scroll over 3 particular rows. The image is a phone with an interface which should match up with normal text, as i scroll new text is seen and the phones interface should change accordingly! I managed to modify a JSFiddle that I found in another thread to do the trick with some text Div's but I can't seam to implement it on my site which have images with URLs as source. Here's the JSFiddle: http://jsfiddle.net/dB7eF/25/ Here's the JS that seams