태그: 

1 글 보임 - 1 에서 1 까지 (총 1 중에서)
  • 글쓴이
  • #8036
    mimoon
    키 마스터

      How to remove “Category Archives: title” at the top of a category page

      That title is coming from archive.php file of TwentySixteen theme.

      You can find a

      code section in that file.

      What you can do, simply copy the archive.php file as category.php and then remove the following code section from category.php file:

      <header class="page-header">
          <?php
              the_archive_title( '<h1 class="page-title">', '</h1>' );
              the_archive_description( '<div class="taxonomy-description">', '</div>' );
          ?>
      </header><!-- .page-header -->
      

      In case you want to show only Category name as page title, then instead of removing the above code from category.php file, just replace the the_archive_title method with:

      printf('<h1 class="page-title">%1$s</h1>', single_cat_title('', false));
      

      Biblenchurch(Onepress Theme)의 경우 category.php은 없고 archive.php에서 해결할 것
      (archive.php을 수정해서 Child에 넣어줄 것)
      상기의 코드가 나옴. printf이하로 대체할 것

    1 글 보임 - 1 에서 1 까지 (총 1 중에서)
    • 답변은 로그인 후 가능합니다.