Making WordPress.org


Ignore:
Timestamp:
06/28/2016 09:57:35 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Post Types: Add custom image size for sponsor logos.

This prevents them from being cropped in undesirable ways.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/inc/widgets.php

    r3280 r3602  
    3838                        .wcb_widget_sponsors .sponsor-logo {
    3939                                display: block;
     40                                padding-bottom: 10px;
    4041                        }
     42
    4143                        .wcb_widget_sponsors .sponsor-logo img {
    4244                                max-width: 100%;
    … …  
    4446
    4547                                /* Conform to https://adblockplus.org/acceptable-ads */
    46                                 max-height: 300px;
     48                                max-height: 150px;
    4749                                width: auto;
    4850                        }
    … …  
    6971
    7072                                        <a class="sponsor-logo" href="<?php the_permalink(); ?>">
    71                                                 <?php ( has_post_thumbnail() ) ? the_post_thumbnail() : the_title(); ?>
     73                                                <?php ( has_post_thumbnail() ) ? the_post_thumbnail( 'wcb-sponsor-logo-horizontal-2x' ) : the_title(); ?>
    7274                                        </a>
    7375
Note: See TracChangeset for help on using the changeset viewer.