• 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-ifield

    I found these for the thumbnail
    pt-cv-href-thumbnail
    pt-cv-thumb-default
    cvplbd
    cvp-responsive-image
    img-rounded
    pt-cv-thumbnail

Viewing 1 replies (of 1 total)
  • Plugin Author Content Views

    (@pt-guy)

    Hello,
    Thank you for contacting us.

    Because this topic relates to custom coding (which we offer to Pro users only), also relates to the Pro version, please contact us here.

    Best regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Adding class not only to title but thumbnail and/or wrapper on Pro’ is closed to new replies.