Adding class not only to title but thumbnail and/or wrapper on Pro
-
Great addon! One of the best.
I found this in the support pages to add a CC class to the title. In my case, “hvr-grow.”
// Content Views Pro – add custom class to post title
add_filter( ‘pt_cv_field_title_class’, ‘cvp_theme_field_title_class’, 100, 1 );
function cvp_theme_field_title_class( $args ) {$custom_class = ‘hvr-grow’;
$args .= ‘ ‘ . $custom_class;
return $args;
}I worked great.
Is there any way to make this also work for (ideally) the wrapper containing both the thumbnail and title, or barring that, simply doing the above to the thumbnail as well, separately? Is it as easy as inspecting and just swapping out the element?
I have a feeling there is something I’m missing, because I can’t find “pt_cv_field_title_class’, ‘cvp_theme_field_title_class
Found this for the wrapper/container (not sure if that is the right word)
pt-cv-ifieldI found these for the thumbnail
pt-cv-href-thumbnail
pt-cv-thumb-default
cvplbd
cvp-responsive-image
img-rounded
pt-cv-thumbnail
- The topic ‘Adding class not only to title but thumbnail and/or wrapper on Pro’ is closed to new replies.