Hide avatar on deleted posts for staff

Hide avatar on deleted posts for staff 13.37

没有下载权限
摘要
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
代码:
 <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


代码:
<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
作者
anne51
浏览
361
扩展类型
rar
文件大小
487 字节
首次发布
上次更新
评分 0.00 星 0 个评分
链接失效了吗? 发送消息 给 NP 团队,我们会尽快为您处理!
支持开发者 如果您对测试满意或项目已成功盈利,可点击「更多信息」按钮,通过购买来支持开发者!

来自 anne51 的更多资源

Kirki Pro A
Kirki Pro 6.2.1 Nulled
WordPress网站构建器,重新想象。
Startli - Elementor Business Consulting WordPress Theme + RTL A
Startli is a modern and professional WordPress Consulting theme
Evne - 创意作品集 WordPress 主题 A
为敢于创新的创意人士,Evne 让你轻松创建自己的现代创意档案!

相似的资源

返回
顶部