XF 2.0 How to Hide Reply/Quote Button for First Post?

hadoi

Member
Hi, How to hide Reply/Quote button for first post?
Please let me know, thank so much!
 
Last edited:

hemant_bhardwaj

Well-known member
Less:
.block--messages .message:first-child .message-cell--main .actionBar {
    .actionBar-action--reply {  display: none;   }
    .js-multiQuote {   display: none;   }
}
This might work - Add this in EXTRA.LESS
 

a.ali

Member
Code:
Open the template : post_macros

Search for:
<xf:set var="$quoteLink">{{ link('threads/reply', $thread, {'quote': $post.post_id}) }}</xf:set>

Add down:
<xf:if is="!$post.isFirstPost()">

Search for:
data-quote-href="{{ link('posts/quote', $post) }}">{{ phrase('reply') }}</a>

Add down:
</xf:if>
 
Top