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

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

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

Recently, my tech blog has switched from the traditional Hueman theme to the official WordPress 2025 theme (Twenty Twenty-Five). This theme based on the modern block editor is very flexible, but when adapting the Chinese and English bilingual sites and customizing the footer, I still stepped on a lot of pits, and also accumulated some optimization experience. Today, I will organize the specific transformation process and share it with you.

Step 1: Look at the footer of the original theme

After switching to a new theme, the default footer is relatively ‘simple’, with many default placeholders and unrealistic links, which is very inconsistent with the tonality of the technical blog. There is also a problem that the content is not aligned in both Chinese and English versions.

Figure 1: This is the initial default effect of the theme, with a large number of useless links on the right, and the layout is loose.

Step 2: Customize the social icon with the correct configuration jump link

WordPress based Social Icons For blocks, we can easily add icons such as GitHub, Telegram and so on.
There is one hereDetails that are particularly easy to step on the pit: When configuring an email icon,The link address must not be filled directly with the email addressand must use mailto: agreement.
The correct format is:mailto:shuijingwanwq@gmail.com. After filling in, the user can directly invoke the local mailbox client to send a letter by clicking the icon, and the experience is very good.

Figure 2: Add a social icon in the block editor and fill in the protocol email link.

Step 3: Solve the differentiation of multilingual navigation menus

My blog uses the Polylang plugin to support both Chinese and English. In the Chinese state, the right side of the footer should display ‘Blog’ and ‘About’, and ‘Blog’ and ‘About’ should be displayed in the English state.

If you use a static menu block, the text under multiple languages will be confused. To solve this problem, I introduced Language Visibility block (Need to install TMS extensions for polylang plugin. The native Polylang plugin does not directly provide this block, and it can only be found in the editor using the FSE block theme after installing the extension).

I ended up building a 4 columns layout:

  • Column 1: Brand Name and Slogan
  • Column 2: GitHub, Telegram, Email social icons
  • Column 3: Archive drop-down menu
  • Column 4: Wrapped Language Visibility navigation menu
Figure 3: Use the Language Visibility block provided by TMS Extensions for Polylang to separate the navigation menu to ensure that the corresponding links in Chinese and English are displayed.

Step 4: A powerful tool to solve the pain points of technical blogs – archive drop-down menu

Tech blogs have more and more articles over time, if the archive list is displayed directly in the footer, like 2013 (34), 2014 (41)... Until 2026 (166) For more than ten years, it will be extremely lengthy, and the footer is very tall, resulting in too much white in the middle, which is extremely ugly.

My solution is to change the ‘archive’ todrop-down menu. WordPress natively provides this option. However, the style of the native drop menu is ugly (especially when using browsers such as Chrome and other browsers, it will show the native buttons, which is incompatible with the theme).
I completely beautified this drop-down menu by defining a CSS style.

Step 5: Apply CSS to beautify the drop-down menu

In the end, the footer in Chinese and English presents a very delicate drop-down frame, with its own black custom arrow, the frame is compact, and the width can be automatically adapted to the content.

Figure 4: Chinese site, the drop-down menu is beautiful in style, and it displays "Select Year".
Figure 5: English site synchronization takes effect, and the border, arrow and width adaptive are perfectly presented.

🎁 Attachment: CSS core code for compatible classification and archives

If you have the same problem, you can copy the following code directly to the WordPress background Appearance -> Customize -> Extra CSS , the drop-down menu instantly becomes advanced:

CSS
/* ==========================================================================
   🔥 分类/归档 下拉菜单样式优化
   ========================================================================== */
/* 联合选择器,同时锁定分类下拉和归档下拉 */
.wp-block-categories-dropdown select.postform, 
select[name="archive-dropdown"], 
.wp-block-archives select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    padding: 10px 44px 10px 16px !important;
    min-height: 46px !important;
    min-width: 120px !important;  /* 保证文字不拥挤 */
    width: fit-content !important; /* 自适应宽度,解决太宽的问题 */
    font-size: 16px !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    outline: none !important;
    /* 自定义黑色下拉箭头 SVG */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 14px !important;
}

/* 鼠标悬浮边框变色 */
.wp-block-categories-dropdown select.postform:hover,
select[name="archive-dropdown"]:hover,
.wp-block-archives select:hover {
    border-color: #000000 !important;
}

After these few steps, my footer not only retains the brand sense of the blog, provides a clear social contact information, but also solves the pain points of multilingual navigation and archives. If you are also tossing about WordPress 2025 topics, I hope this record can provide you with some reference!

WordPress 2025 Theme + Polylang: Fix a full record of the missing language directory for the calendar link From single column to two columns: the practical record of the sidebar and list structure of the WordPress category page unified first page

评论

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.