Day: September 19, 2026

已经注释掉了 ✅(第 17 行 `// require LYZ_DIR . ‘/inc/seo.php’;`)。

已经注释掉了 ✅(第 17 行 `// require LYZ_DIR . ‘/inc/seo.php’;`)。

  --- ## 下一步 ### 1. 保存 点左上角 **"保存"**。 ### 2. 刷新文章页 打开任意一篇文章,**F12 → Elements**,看 `<head>` 里: - 搜 `description` —— 应该**只有 1 条**(Yoast 的) - 搜 `og:title` —— 应该**只有 1 条** - 搜 `application/ld+json` —— 应该有 Yoast 输出的结构化数据 - 搜 `<title>` —— 应该**只有 1 个** **如果都只有一份** → 冲突解决了 ✅ **如果还有重复** → 说明 Yoast 的某个设置没关,或者 luyuzhe 的 seo.php 缓存没清 ### 3. 清缓存 宝塔 → **软件商店** → **PHP-80** → **重载配置**。 (因为 OPcache 会缓存 PHP 文件,注释掉 require 需要重载 PHP 才生效) --- ##...
做代码高亮。用 **Prism.js**——轻量、支持自动识别语言、带复制按钮。

做代码高亮。用 **Prism.js**——轻量、支持自动识别语言、带复制按钮。

好,做代码高亮。用 **Prism.js**——轻量、支持自动识别语言、带复制按钮。 --- ## 第 1 步:修改 `inc/enqueue.php` 宝塔打开: ```text /www/wwwroot/test.smeltpro.com/wp-content/themes/luyuzhe/inc/enqueue.php ``` **全选删掉**,粘贴: ```php <?php if ( ! defined( 'ABSPATH' ) ) exit; /** * 前台资源 */ function lyz_enqueue_assets() { wp_enqueue_style( 'lyz-style', get_stylesheet_uri(), array(), LYZ_VERSION ); wp_enqueue_script( 'lyz-script', LYZ_URI . '/assets/js/theme.js', array(), LYZ_VERSION, true ); // 首页幻灯 if ( is_front_page() ) { wp_enqueue_script( 'lyz-hero-slider', LYZ_URI . '/assets/js/hero-slider.js', array(), time(), true ); } // 代码高亮(Prism.js)— 只在文章/页面加载 if ( is_singular() ) { // 主题 CSS wp_enqueue_style( 'prism-theme', 'https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism-tomorrow.min.css', array(), '1.29.0' ); //...
先做一件事:备份当前版本

先做一件事:备份当前版本

好,基础功能确实齐了。剩下的是**优化细节**。先给你一份完整的"待优化清单",再推荐先做哪个。 --- ## luyuzhe 优化清单(按价值排序) ### 🔴 强烈推荐(企业站必备) | # | 功能 | 工作量 | 价值 | |---|---|---|---| | 1 | **SEO 第二批**:结构化数据 + sitemap.xml + 首页/分类页 SEO 后台配置 | 1.5 小时 | 百度/Google 收录,主站迁移 SEO 数据不断层 | | 2 | **移动端菜单**:手机端汉堡菜单 + 抽屉式导航 | 1 小时 | 手机用户占 60%+ | | 3 | **分享按钮**:微信/微博/复制链接 | 30 分钟 | 内容传播 | | 4 | **图片懒加载**:滚动到才加载 | 30 分钟 | 首页加载速度 | ### 🟡 加分项 | # | 功能 | 工作量...
第 1 步:新建 inc/seo.php

第 1 步:新建 inc/seo.php

好,做 SEO 第一批。一次性给完整代码,你复制粘贴即可。 第 1 步:新建 inc/seo.php 宝塔新建: /www/wwwroot/test.smeltpro.com/wp-content/themes/luyuzhe/inc/seo.php 粘贴: <?php if ( ! defined( 'ABSPATH' ) ) exit; /* ============================================================ 1. 文章编辑页:SEO 字段 ============================================================ */ function lyz_seo_meta_box() { add_meta_box( 'lyz_seo_box', 'luyuzhe · SEO 设置', 'lyz_seo_meta_box_html', array( 'post', 'page' ), 'normal', 'high' ); } add_action( 'add_meta_boxes', 'lyz_seo_meta_box' ); function lyz_seo_meta_box_html( $post ) { wp_nonce_field( 'lyz_seo_save', 'lyz_seo_nonce' ); $title = get_post_meta( $post->ID, '_lyz_seo_title', true ); $desc = get_post_meta( $post->ID, '_lyz_seo_description', true ); $kw = get_post_meta( $post->ID, '_lyz_seo_keywords', true ); ?> <p>...
The Two Sources of Gas Porosity

The Two Sources of Gas Porosity

The Two Sources of Gas Porosity Hydrogen porosity comes from moisture. Every time aluminium meets water vapour, it absorbs hydrogen. The hydrogen stays dissolved in the liquid metal. During solidification, the solubility drops sharply. The hydrogen has to go somewhere. It forms bubbles. Those bubbles become porosity. Air entrapment comes from turbulence. When metal fills the die cavity at high speed, it splashes and folds over itself. Air gets trapped. The vacuum system cannot remove it if the filling is too turbulent....
How to Reduce Gas Porosity in Die Casting Aluminum Melts

How to Reduce Gas Porosity in Die Casting Aluminum Melts

test_smeltpro_co2026年9月19日未分类 Gas porosity is the most comm Gas porosity is the most common internal defect in aluminium die casting. It shows up as round, smooth cavities on X-ray. It causes leaks in structural parts. It ruins machined surfaces. And it costs foundries millions in scrap every year. In my 25 years, I have traced gas porosity to two sources: hydrogen dissolved in the melt and air entrapped during filling. They look similar on a radiograph. They have different causes and different fixes. Here...
How to Choose an Energy-Efficient Aluminum Melting Furnace

How to Choose an Energy-Efficient Aluminum Melting Furnace

Choosing an energy-efficient aluminium melting furnace comes down to four things: specific energy consumption, furnace type, heat recovery, and control system. Get these right, and you cut your energy bill by 20–40%. Get them wrong, and you pay for it every day for the next 15 years. I have spent 25 years selecting, installing, and troubleshooting aluminium melting furnaces in China, Southeast Asia, India, the UK, Europe, and North America. In the last three years, energy efficiency has moved from...
How to Reduce Gas Porosity in Die Casting Aluminum Melts

How to Reduce Gas Porosity in Die Casting Aluminum Melts

Gas porosity is the most common internal defect in aluminium die casting. It shows up as round, smooth cavities on X-ray. It causes leaks in structural parts. It ruins machined surfaces. And it costs foundries millions in scrap every year. In my 25 years, I have traced gas porosity to two sources: hydrogen dissolved in the melt and air entrapped during filling. They look similar on a radiograph. They have different causes and different fixes. Here is how I reduce both. Degassing The...
世界,您好!

世界,您好!

欢迎使用 WordPress。这是您的第一篇文章。编辑或删除它,然后开始写作吧!
微信扫码

WhatsApp: 15962220217