본문 바로가기

워드프레스

210427 워드프레스 테마 수정 경로

 

맨날 하는 게 아니라 하다 안하다 오랜만에 하다 하니까 할 때마다 기억이 안 난다.

이건 기록을 안 해놨네. 어디까지나 내가 수정 하고 있는 theme인 twentytwentyone 기준.

 

header : [theme 경로]/[templates-parts]/[header]/site-header.php

 

index : [theme 경로]/[templates-parts]/[content]/content-excerpt.php

이게 개빡치네. 바디 상단 내용 중에 아래 코드블럭 내용을 먼저 찾기 시작했는데, 당연히 헤더는 아닐 거라 생각하고 바디 쪽 관련되어 보이는 내용에서만 졸라 찾았는데 결국 theme 경로 root에 있는 header.php 에 들어 있는 내용이었음. ([theme]/header.php)

	<div id="content" class="site-content">
		<div id="primary" class="content-area">
			<main id="main" class="site-main" role="main">

그니까 인덱스 화면에서의 내용 구성은 header 페이지 + 블로그 글 리스트 페이지 + footer 페이지 구조인데, 블로그 글 리스트 페이지에는 내용 부분을 감싸는 wrap 그딴 것도 따로 안 들어 있음. 그런 것도 헤더에 들어가 있고 ONLY 블로그 글 출력만 되게 되어 있음. 

 

footer : [theme 경로]/[templates-parts]/[footer]/footer-widgets.php

 

++글 상세 페이지 : [theme 경로]/[templates-parts]/[content]/content-single.php

 

나머지는 아직 정체를 못 밝혔다. 오늘은 여기까지 끝.

 

728x90