• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

Adding a conditional styling class to template

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
I want to have a message background which is different only for one user. I have added the class mod-message to post_macros by inserting the conditional lafter the existing two classes (message-body and js-selectToQuote)

Code:

<article class="message-body js-selectToQuote <xf:if is="$post.user_id == 9092">mod-message</xf:if>">

This does work but I am concerned it is not the correct way to do it as the inserted text shhgowed red in the template edit.

Can anyone please confirm this is OK...

Read more
 
امضا : XFFA.IR Bot
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

موضوعات مشابه

عقب
بالا