diff --git a/assets/css/stag-shortcodes.css b/assets/css/stag-shortcodes.css index bd8d1db..c85260f 100644 --- a/assets/css/stag-shortcodes.css +++ b/assets/css/stag-shortcodes.css @@ -555,7 +555,8 @@ float: left; margin: 0px 0px 5px 5px; } -.instragram-widget-wrapper img { + +.size-thumbnail img { max-width: 75px; height: auto; } diff --git a/assets/scss/stag-shortcodes.scss b/assets/scss/stag-shortcodes.scss index 5668fa5..11bd45f 100644 --- a/assets/scss/stag-shortcodes.scss +++ b/assets/scss/stag-shortcodes.scss @@ -379,7 +379,10 @@ float: left; margin: 0px 0px 5px 5px; } - img{ +} + +.size-thumbnail { + img { max-width: 75px; height: auto; } diff --git a/includes/widgets/widget-instagram.php b/includes/widgets/widget-instagram.php index 07d3ac0..d0d9488 100644 --- a/includes/widgets/widget-instagram.php +++ b/includes/widgets/widget-instagram.php @@ -16,7 +16,7 @@ function widget( $args, $instance ) { echo $before_widget; $title = apply_filters( 'widget_title', $instance['title'] ); - $username = $instance['username']; + $username = strtolower( $instance['username'] ); $cachetime = empty($instance['cachetime']) ? 9 : $instance['cachetime']; $count = empty($instance['count']) ? 9 : $instance['count']; $size = empty($instance['size']) ? 'thumbnail' : $instance['size']; @@ -31,7 +31,7 @@ function widget( $args, $instance ) { } else { ?> -