Call JavaScript for custom added class for Wordpress WPBakery Visual Composer Post Grid?
I added a class (format-date) to a custom field in Post Grid but I can't seem to apply any JS to it.
<div class="vc_gitem-post-meta-field-_EventStartDate format-date vc_gitem-align-left"> 2015-10-08 07:30:00</div>
Simple jQuery test:
$('.format-date').addClass('test')
Code is in the footer and I've tried
$(window).load(function() $(document).ready(function()
. No JS errors in Fire Bug.
I suspect it's due to the loading animation applied to the posts. How can I call my JS after this has loaded?
Solutions
This worked:
$(document).ajaxStop(function() {
// your code here
});
Similar questions
WpBakery (Visual Composer) - Responsive best practices
I'm using wpbakery wordpress plugin. I added in design options padding and generated css code looks like: I need to remove padding on smaller screen sizes. My question is, what is best practice to do that? Simple media query like this or there is better way?
WPBakery Visual Composer not loading
Im using the latest Wordpress version. Since GUTENBERG the Visual Composer is not working. I installed Classic Editor plugin. But it brought nothing. Also the Theme Customizer is not loading. Here you will find the error messages from the Console: Theme: ColorMag
Align scroll down arrow to the bottom center of a full-screen div in WPBakery Visual Composer
I have a series of full-screen divs in Visual Composer and I want an arrow at the bottom of each one indicating to users they should scroll for more content. I tried absolute positioning on the divs containing the icon with no luck. All I've done is move the icon a few pixels to th Existing CSS: The icon itself is the Defaults-chevron-down. Do you ...
How to edit html in WpBakery(Visual Composer) page
firstly I'm sorry for my english level. There is a wordpress page that created with Visual Composer extension. Images in this page is not contain width height value. I want to add width height values to images in the page using html but I can't find html codes in page created with visual composer. Please help me Why do I add to width and height val...
WordPress Getting post data for Post Grid of Visual Composer
I'm using Visual Composer in WordPress and I want to make a custom Post Grid. But the default elements that the post grid supplies are not enough. I want to show the author of the post, the number of comments it has, the category it has and the Tags it has as well. I'm not really familiar with Visual Composer, but I need a point in the right direct...