From single column to two columns: the practical record of the sidebar and list structure of the WordPress category page unified first page

图2:分类页单栏效果

From Classical to Block: Theme Migration

From Hueman to Twenty Twenty-Five, Topic Switching with Multilingual Menu Configuration

(1) From Hueman to Twenty Twenty-Five, Topic Switching with Multilingual Menu Configuration

经过以上步骤,语言切换器最终在页面上的效果符合预期。(见图 9)

(2) In a WordPress 2025 topic, move the Polylang language switch to the full record in the upper right corner

页眉导航宽度异常问题:导航被内容宽度限制(图 4)

(3) WordPress Twenty Twenty-Five Global Width Layout Practical Notes: Widescreen Full-Scale + Large Screen Limited Wide Configuration Scheme

中文(中国)前台首页:66主内容文章+33标准化侧边栏,区块正常显示(对应图6)

(4) Practice|WordPress Twenty-Five Block Theme Text Blog Home Transform the Classic Two-Column Homepage

改造完成最终首页效果(图5)

(5) WordPress Twenty Twenty-Five Two-column homepage transformation: Text Blog Small picture list template complete practical record

图11:样式重写后下拉美观,但层级子分类在原生 Option 标签下以空格缩进表示

(6) Debugging record of the beautification and rendering mechanism of the drop-down menu of the category list

图3:应用修正后的 CSS,日历占据了应有的侧边栏宽度,有文章的日子用主题同色系进行了高亮,悬停时会变黑

(7) Fixed the issue of “getting dissatisfaction” in the sidebar: WordPress 2025 theme calendar style optimization

图5:English 下的页面显示第二个 Language Visibility 区块

(8) Add the multi-language “Personal Brand” block to the sidebar of the blog homepage

图4:调整后的分页效果

(9) Troubleshooting and Repair of One FSE Page Loss: From Pure Layout Template to Query Loop

在英文页面(https://www.shuijingwanwq.com/en/)中,日历上每个日期点击后跳转的链接仍然是 https://www.shuijingwanwq.com/2026/06/08/ 的形式,而不是预期的 https://www.shuijingwanwq.com/en/2026/06/08/。

(10) WordPress 2025 Theme + Polylang: Fix a full record of the missing language directory for the calendar link

图4:中文站点,下拉菜单样式美观,显示“选择年份”。

(11) Optimize WordPress 2025 Themeser: A complete remodeling record of multilingual navigation, social links and archive drop-down bars

图2:分类页单栏效果

(12) From single column to two columns: the practical record of the sidebar and list structure of the WordPress category page unified first page

套用上述代码后,标签云立刻有了质的飞跃:

(13) Say goodbye to uneven! Create a modern label cloud for 2025 themes only with CSS

搜索“alipay”的结果,每篇文章都带了一张大尺寸的特色图片,紧跟着就是完整的正文内容。我的文章里还有代码片段,全都被拉出来显示在列表里,页面无限拉长,排版也乱糟糟的。如图1

(14) Is the search result page too long? I did a “break away” for the WordPress 2025 theme

在英文页面 https://www.shuijingwanwq.com/en/ 中,22 号显示蓝色链接

(15) Compatibility restoration practice of WordPress calendar in Polylang multi-language environment

Network检查确认:如图3

(16) WordPress Theme Migration: Does Emoji Process Code Need to Keep?

图2 Site Wide Header

(17) WordPress Tab NoIndex Optimization: Practical Sharing from Theme Migration to Code Refactoring

最近,我在检查我的 WordPress 网站时,发现浏览器开发者工具的控制台里出现了几个令人不安的红色错误信息:

(18) WordPress Console Error Troubleshooting Transcript: From jQuery conflict to Baidu statistical warning

I recently encountered a small pain point while optimizing my technical blog. homepage of the website (shuijingwanwq.com) adopts the classic and information-rich left picture and right text + right sidebar structure (see Figure 1). But the classification pages (e.g. .../category/programming-language/) still retains the pure title list of the single column. Not only is there a missing sidebar on the right side, but there is no summary on the left list, which is very thin, and the visual effects on both sides are very inconsistent.

Figure 1: Two-column effect on the home page
Figure 1: Two-column effect on the home page


Figure 2: Category page single bar effect
Figure 2: Category page single bar effect

In order to unify the style, I decided to modify the template of the category page to the same as the home pageTwo-column layout, the right side is introduced to the sidebar, and the left side is raised by adding a summary. The following is the specific transformation process, focusing on the analysis of the block structure in the FSE editor.

1. Copy the homepage sidebar structure

The first step is very fast. Use the ‘Edit Site’ function on the home page to enter the editor, and click any block in the sidebar on the right. Since my right sidebar is stacked with multiple blocks, I directly selected the functions that include search, category drop-down, personal profile, tag cloud and other functions. ‘Stack’ block. After selecting, press Ctrl + C copy.

Figure 3: Select the stacked block on the right side of the home page and copy it
Figure 3: Select the stacked block on the right side of the home page and copy it

2. Transform the classification page into two columns and paste the sidebar

The second step is to exit the homepage editing, and enter the ‘All Archives’ template (this is a general template for archive pages such as categories, tags, etc.).

In the editor, I first changed the layout of the original single column toLeft and right columnsstructure. Then in the ‘Column’ that is vacant on the right, press ctrl + v Paste the sidebar you just copied.

The basic editor block structure in Figure 4 is as follows:

  • Main column on the left (content area):
    • Group (group)
      • Archive title (Archive title)
      • Project description (term description)
      • Interval (Spacer)
      • Text Blog Query Loop (Query loop block)
  • right sidebar:
    • column (column)
      • stack (stack) – [注:这是从首页直接复制过来的整个侧边栏区块,包含个人简介、标签云等]
Figure 4: Split into two columns in all archive templates and paste the sidebar
Figure 4: Split into two columns in all archive templates and paste the sidebar

3. Optimize the list height on the left and the excess blocks on the right

Through the transformation of Figure 4, the classification page has a sidebar, but because it is a pure title list, the height on the left side is too short, and the height of the sidebar on the right side is extremely mismatched.

Therefore, I unfolded the left side Text Blog Query Loop Middle Post Template, insideAdded ‘Excerpt’ block, let the content preview of each article stretch the height of the left. At the same time, go back to the right sidebar,Deleted the ‘Most Viewed Posts’ block that takes up a lot of height and is not needed.

At this time, the hierarchical structure of the blocks on the left and right sides is finally determined as follows:

  • The main bar on the left (refinement into the structure of Figure 5):
    • Group (group)
      • Archive title
      • Project description
      • Interval
      • Text Blog Query Loop
        • Group
        • Post Template
          • stack (stack)
            • Row (Row): Contains Title (title),Post Date
            • Row (Row): Contains Summary (Post excerpt) —— [此次新增]
  • right sidebar:
    • column (column)
      • stack (stack) – [移除了 Most Viewed Posts 区块,高度缩减]
Figure 5: Add a summary in the Text Blog Query Loop, delete the popular article block on the right
Figure 5: Add a summary in the Text Blog Query Loop, delete the popular article block on the right

Preliminary effect and line breaking pain point

After the above modification, the number of display items of the blog category pages is still maintained in the 10 article.

  • Chinese environmental test (Figure 6): The height of the list on the left is basically aligned with the height of the sidebar on the right.
  • English environment test (Figure 7): Due to the long English words, the left side is significantly higher than the right side (this problem is temporarily compromised and accepted).
  • New pain points appear (Figure 8): I found that under the structure of ‘row’ nested ‘group (group)’, if the title of an article is longer, the right side of the article date It will be squeezed into two lines for display, which will appear in Chinese and English environments, and the visual effect is very poor.
Figure 6: The classification list in Chinese language, basically aligned left and right
Figure 6: The classification list in Chinese language, basically aligned left and right


Figure 7: The classification list in English language, left and right are not aligned
Figure 7: The classification list in English language, left and right are not aligned


Figure 8: Problems with the date line break display
Figure 8: Problems with the date line break display

5. Ultimate optimization: directly use the ‘column’ to perfectly solve the date line break

In order to solve the date newline problem caused by the ‘row + group’ structure, I finally gave up the original nested structure, in Article Template Inside, directly replaced ‘Columns’ block. outermost stack Also removed, the structure becomes flatter and more stable.

The final editor block structure text in Figure 9 is as follows:

  • Main column on the left (content area):
    • Group (group)
      • Archive title
      • Project description
      • Interval
      • Text Blog Query Loop
        • Group
        • Post Template
          • Columns —— [最终采用的方案,彻底取代了之前“堆叠+行”的嵌套结构]
            • left column (column): contain Article Title (Post Title), the width is set to 85%, the block layout alignment is set to ‘Left Align’.
            • Right Column (Column): contain Post Date, the width is set to 15%, the block layout alignment is set to ‘Aligned right’.
          • Summary (Post excerpt) —— [放在栏目下方]
Figure 9: The final "column" structure to wrap the title and date
Figure 9: The final ‘column’ structure to wrap the title and date

Remove the complex ‘stack’ of the outer layer, and use the underlying ‘column’ block directly under the article template, and give it to each 85% And 15% The fixed width ratio, this problem is easily solved. No matter how long the title is, the percentage space will automatically squeeze the title,The date that the right ratio is not squeezed will be squeezed againAt the same time, the perfect left and right alignment also makes the typesetting more standardized.

Figure 10 It is the final front-end display effect. Whether in Chinese or English environment, no matter how long the title on the left is, the release date on the right can be kept in one line safely, and the overall left and right height is perfectly aligned.

Figure 10: Perfect front-end renderings after the final repair
Figure 10: Perfect front-end renderings after the final repair

Summary:
In the WordPress block theme (FSE), through Ctrl+C And CTRL+V Copying the sidebar directly across templates is very efficient. If the list block of the classification page encounters the layout and squeeze problem,Upgrade from the ‘Row’ structure to ‘Columns’, with accurate percentage width allocation, it is often the ultimate solution. It not only solves the problem of alignment and line breaks in different languages, but also makes the layout of multilingual sites more stable and simple to maintain.

Optimize WordPress 2025 Themeser: A complete remodeling record of multilingual navigation, social links and archive drop-down bars Say goodbye to uneven! Create a modern label cloud for 2025 themes only with CSS

评论

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.