각 하위 카테고리에 배너 이미지를 추가하고 싶습니다.
어떻게 해야 하는지 설명해 주실 수 있나요:
다음은 제가 수행하는 단계입니다:
1.- 구성 요소를 설치하고 테마에 해당 구성 요소를 추가합니다.
2.- 다음 항목을 비활성화합니다:
설명 표시
“이 카테고리에 대해” 게시글의 설명 표시
3.- CSS/HTML을 편집하여 컴퓨터용 이미지 하나와 모바일 폰용 이미지 하나를 설정합니다.
제가 입력한 내용은 다음과 같습니다:
.category-title-header {
&.category-banner-music-pop {
background: url(https://holaforo-files.nyc3.digitaloceanspaces.com/original/4X/d/b/7/db787ef2c390e80920e7dabbfa68800268bc4f79.jpeg);
}
}
수정하고 싶은 버그:
1.- 사진 위에 위치한 하위 카테고리 이름 텍스트를 숨기는 방법을 모릅니다. "Musica pop"이라고 적힌 텍스트를 제거하고 싶습니다.
2.- 이미지가 전체적으로 표시되지 않습니다. 이미지가 세로로 잘려 있습니다.
매우 감사합니다
Lilly
(Lillian )
9월 11, 2023, 10:37오후
2
@Pandabear 이 컴포넌트도 있습니다. 사용 사례에 더 적합한 다른 옵션을 제공할 수 있습니다:
This theme component provides a number of enhancements for the Discourse category header.
The ‘standard’ Discourse category header is displayed at the top of each category page, above the navigation links and list of topics. It is normally only visible if a category logo image has been uploaded in the category settings. The header displays the logo and a short description of the category, taken from the first paragraph of the ‘About the.. category’ topic.
This theme component provides the foll…
정말 감사합니다. 제가 원하는 데 더 잘 맞는지 모르겠지만, 제 취향에 맞게 조정하는 작업은 이미 끝냈습니다. 작은 버그가 하나 있는데 누군가 해결해 주길 바랍니다. 감사합니다.