인기글의 요약 부분은 클릭이 안되게 기본 세팅이 되어있는데 이것을 수정하려면 다음과 같은 작업을 진행해야 한다.
1. 먼저 PopularPosts1 위젯 안에서 해당 코드를 찾는다. (아니면 아무 줄이나 복붙해서 찾자)
<b:includable id='snippetedPostContent'>
<b:comment>Add a 'keep reading' link to the item-content.</b:comment>
<b:include name='snippetedPostTitle'/>
<b:include name='snippetedPostByline'/>
<div class='item-content float-container'>
<b:include cond='data:this.postDisplay.showFeaturedImage and data:post.featuredImage' name='snippetedPostThumbnail'/>
<b:if cond='data:this.postDisplay.showSnippet'>
<b:with value='"popular-posts"' var='snippetPrefix'>
<b:include cond='data:post' data='post' name='postSnippet'/>
</b:with>
</b:if>
<b:include data='post' name='postFooterJumpLink'/>
</div>
</b:includable>
2. 위의 코드를 아래와 같이 변경한다.
<b:includable id='snippetedPostContent'>
<b:comment>Add a 'keep reading' link to the item-content.</b:comment>
<b:include name='snippetedPostTitle'/>
<b:include name='snippetedPostByline'/>
<div class='item-content float-container'>
<a expr:href='data:post.url'>
<b:include cond='data:this.postDisplay.showFeaturedImage and data:post.featuredImage' name='snippetedPostThumbnail'/>
<b:if cond='data:this.postDisplay.showSnippet'>
<b:with value='"popular-posts"' var='snippetPrefix'>
<b:include cond='data:post' data='post' name='postSnippet'/>
</b:with>
</b:if>
<b:include data='post' name='postFooterJumpLink'/>
</a>
</div>
</b:includable>
3. 저장 후 인기 포스트 위젯의 요약문이 제대로 눌러지는지 확인할 것.
2022. 3. 14.
'Blogging' 카테고리의 다른 글
구글 블로그 링크 리스트 간격 띄우기 (0) | 2022.07.24 |
---|---|
구글 블로그 요약문 글자 수 조정하기 (0) | 2022.07.24 |
구글 블로그 썸네일 요약글 클릭 시 본문으로 이동하게 만들기 (0) | 2022.07.24 |
구글 블로그 '댓글 쓰기' 메세지 바꾸기 (0) | 2022.07.24 |