בעיה בכותרת הקטגוריות מאז העדכון

סיכום מבוסס בינה מלאכותית

Gilles is trying to remove the category description and logo block from category pages while keeping the logo on the home page. After a recent update, the CSS command .category-heading { display: none; } stopped working. chapoi suggests removing the category logo to hide the banner, but Gilles wants to keep the logo on the home page. chapoi explains recent changes and suggests custom CSS tweaks. chapoi provides a more specific CSS solution .category-heading.--has-logo { display: none; }, which gilles confirms works.

Hello,
I wish to remove the block for the description and logo of the categories
I had solved it with the command to remove it
.category-heading { display: none; }
but since the update, the block has returned

Do you know how to solve this problem to remove it again?

Thank you

אני חושב שאחרי עדכון, ה-CSS המותאם אישית שלך הוסר.

כדי להסיר את הבלוק הזה, אם אתה מנהל, הסר את תמונת הלוגו של הקטגוריה והבאנר ייעלם גם כן.

Mine has a slightly different issue: On the home page.

And once I am on the category page:

Yes, there’s been a recent change to these:

https://github.com/discourse/discourse/pull/34081

There’s nothing to it, but fiddling around with custom css to make it work again with your specific image. (Or better yet, provide an image with a 1:1 ratio.)

Example with:

.category-heading__logo.category-logo.aspect-image {
  width: auto;
  height: 100px; 
}

Might need some tweaks for mobile vs desktop.

תודה על המשוב שלך.
ואכן, אתה צודק כאשר אני מסיר את הלוגו של הקטגוריה, אין לי יותר את הלוגו והתיאור.
אבל אני רוצה לשמור את הלוגו של הקטגוריה שלי בדף הראשי ולא לקבל יותר את הלוגו והתיאור כשאני נכנס לקטגוריה.
הפקודה .category-heading { display: none; } עדיין קיימת אך אין לה שום השפעה על הנושא שלי.

ייתכן שהספציפיות השתנתה, האם תוכל לבדוק זאת ב-inspector?
אם אינך יודע כיצד, נסה לשנות את ה-css שלך ל:

.category-heading.--has-logo { display: none; }

ולראות אם זה פותר את הבעיה.

Great, that works
thanks :+1: