remove inline styles from templates

This commit is contained in:
Evan Mullins 2024-08-22 15:32:54 -04:00
parent 99446a5ce1
commit 56df3ff0a0
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ $user = get_user_by('id', $userid);
// if has posts and is not admin
if ( $userposts && !$user->has_cap( 'manage_options' ) ) { ?>
<aside class="widget-area" style="margin: 1rem 0 -2.5rem; ">
<aside class="widget-area">
<section class="widget widget_posts_widget">
<?php

View file

@ -16,7 +16,7 @@ if ( $spotlight_id && get_post_status( $spotlight_id ) === 'publish' ) :
'orderby' => 'title',
));
if ( !empty($images) ) : ?>
<aside class="widget-area" style="margin: 1rem 0 -2.5rem; ">
<aside class="widget-area">
<section class="widget widget_spotlight_widget user-spotlight">
<h4><a href="<?php echo get_permalink( $spotlight_id ); ?>">Spotlight on <?php echo esc_html( $user->display_name ); ?></a></h4>
<!-- <img width="300" height="300" src="<?php echo get_the_post_thumbnail_url( $spotlight_id ); ?>" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="<?php echo get_the_title( $spotlight_id ); ?> image" decoding="async" loading="lazy"> -->