Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter vmcmnet

    (@vmcmnet)

    I should have provided the link: http://www.sheridanice.org/sponsors/gold/

    Thread Starter vmcmnet

    (@vmcmnet)

    It seems once I shorted the titles, the problem went away
    ….. Spoke too soon. IT was fine and then return to sporadically displaying again. 🙁 any ideas??

    Plugin Author akyusa01

    (@akyusa01)

    Yes, this is due to some having more text then others, if you have a place on your theme to put Custom CSS (or in a child theme style.css) you can resolve it by using this code:

    .cr3_sponsorwrapper .fours-column {min-height:260px;}

    Thread Starter vmcmnet

    (@vmcmnet)

    Great! That fixed it. Thanks!!

    Thread Starter vmcmnet

    (@vmcmnet)

    So the recommended solution worked on the one page but if I have over 12 entries, it goes back to leaving blank spaces.

    http://www.sheridanice.org/sponsors/silver-sponsors/

    Plugin Author akyusa01

    (@akyusa01)

    Hi – just increase the min-height to 270px, anytime you see that, just try increasing the min-height, it’ll fix you right up 🙂

    Thread Starter vmcmnet

    (@vmcmnet)

    Many thanks!! That did trick…

    William Bixler

    (@williambixler)

    There is also a fix that can be implemented programmatically into “cr3ativ-sponsor.php”:

    $output = '';
        $temp_title = '';
        $temp_link = '';
        $temp_excerpt = '';
        $temp_image = '';
    	$count = 0;
    
         $output .= '<div class="cr3_sponsorwrapper">';
    
        if (have_posts($args)) : while (have_posts()) : the_post();
    
            $temp_title = get_the_title($post->ID);
            $temp_sponsorurl = get_post_meta($post->ID, 'cr3ativ_sponsorurl', $single = true);
            $temp_excerpt = get_the_content($post->ID);
            $temp_image = get_the_post_thumbnail($post->ID, 'full');
    
            if( $columns == '1' ) {
            $output .= '<div class="ones-column">';
                ;} elseif ( $columns == '2' ) {
            $output .= '<div class="twos-column">';
                ;} elseif ( $columns == '3' ) {
            $output .= '<div class="threes-column">';
                ;} else {
            $output .= '<div class="fours-column">';
            }
    
         if( $image == 'yes' ) {
             if( $link == 'yes' ) {
                $output .= '<a href="'.$temp_sponsorurl.'" target="_blank"><div class="cr3_sponsor_image">'.$temp_image.'</div></a>';
         ;} else {
                 $output .= '<div class="cr3_sponsor_image">'.$temp_image.'</div>';
             ;}
    
         ;}
         if( $title == 'yes' ) {
             if( $link == 'yes' ) {
                $output .= '<h2 class="cr3_sponsorname"><a href="'.$temp_sponsorurl.'" target="_blank">'.$temp_title.'</a></h2>';
         ;} else {
                 $output .= '<h2 class="cr3_sponsorname">'.$temp_title.'</h2>';
             ;}
    
         ;} 
    
         if( $bio == 'yes' ) {
             $output .= '<p>'.$temp_excerpt.'</p>';
         ;}
    
            $output .= '</div>';
    
    		$count++;
    		if ($count == intval($columns)) {
    			$output .= '<br style="clear:both"/>';
    			$count = 0;
    		}
    
        endwhile; 
    
       endif;

    This is inside the ‘sponsor_level_cat_func’ function on the very last if statement. I added in a counter to check if it is on the last item in a row. If it is, then it appends a page break and clears the float styles in order to create a new row. I hope that Cr3ativ includes this fix in their next update.

    Plugin Author akyusa01

    (@akyusa01)

    Sorry for the delay – it’s been crazy here lately! But thanks sooooo much for this William! 🙂 I will be definitely using this on our next update! That has saved me some work and it really is so much appreciated!!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Not properly displaying in columns’ is closed to new replies.