Hide avatar on deleted posts for staff

Hide avatar on deleted posts for staff 13.37

No permission to download
Short Description
Enhance your experience by hiding avatars and reducing page scroll size with our edit template. Update post_macros to hide user avatars for deleted posts, making it easier to manage. Simply replace the existing code snippet with our suggested version.
I didn't like how the avatars on deleted posts were viewing and enlarging the page especially since I've increased my default avatar sizing. By editing the following, you can hide the avatar and reduce the page scrolling size making it easier to manage.

Edit template: post_macros
Code:
 <div class="message-cell message-cell--user">
                    <xf:macro template="message_macros" name="user_info_simple" arg-user="{$post.User}" arg-fallbackName="{$post.username}" arg-includeMicrodata="{$includeMicrodata}" arg-itemProp="author" />
                </div>
Replace


Code:
<xf:if is="!$post.message_state == 'deleted'">
                <div class="message-cell message-cell--user">
                    <xf:macro template="message_macros" name="user_info_simple" arg-user="{$post.User}" arg-fallbackName="{$post.username}" arg-includeMicrodata="{$includeMicrodata}" arg-itemProp="author" />
                </div>
            </xf:if>


BEFORE:
RZ_BEFORE.webp


AFTER:
RZ_BEFORE.webp
Author
anne51
Views
277
Extension type
rar
File size
487 bytes
First release
Last update
Ratings 0.00 star(s) 0 ratings
Link was Broken? Send message to the Website Team and we will assist you quickly!
Support Developer If you are satisfied with the test or your project has earned you money, Click the More Information button to support the developer by purchasing.

More resources from anne51

Whocaller Caller ID & Spam Blocker A
Whocaller – Who Called Me is the top true caller id app.
WooCommerce Role Based Methods / Role-Based Payment / Shipping Methods A
gives site administrators the ability to individually limit available Shipping Methods and Payment
Finovate – Financial Advisors & Business Consulting WordPress Theme A
Finovate is a meticulously crafted theme designed for financial advisors, wealth managers etc

Similar resources

Top