2022-12-09
20210520-css

由於 jetpack related posts 的位置從 css 來看, 會指定為靠左, 而若是使用像 blocksy 等居中對齊的 theme 會導致 related posts 位置異常, 所以需要調整.

調整方式利用 customize -> additional css 的方式來實施, 加入如下的 css:

#jp-relatedposts {
    width: 90%;
    margin: 0 auto;
}

即可順利在每篇 post 之後的 related posts 與文章一樣居中對齊囉.

Reference: https://wordpress.org/support/topic/how-to-center-align-related-posts-text-and-images/

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Enable Notifications OK No thanks