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

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

Trying to specify different node icon for question and article nodes?

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

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
This code works for the regular forum types but it ignores the different icon for the Question node type and Article node type. Instead, it just uses the icons from the general forum nodes. What am I doing wrong? This code was suggested by ChatGPT, so that could be the reason.

Code:

کد:
.node-icon {
    background-image: url('/img/lotus-node.webp');
    background-repeat: no-repeat;
    background-size: 40px 40px;
    background-position: center;
}
.node-icon i {
    display: none;
}
.node--read...

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

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

عقب
بالا