首页
关于
Search
1
Advanced Theme Development With Bootstrap
14 阅读
2
sem
11 阅读
3
Typecho本地及线上部署
10 阅读
4
B端SEO全程路线图--启发自binica
10 阅读
5
GA4 知识
8 阅读
Wordpress Development
Javascript
React + Nextjs
Vue + nuxtjs
SEO
Java
Social Media
SEM
AstroJs
Linux
实体行业知识学习
shopify
登录
Search
Typecho
累计撰写
20
篇文章
累计收到
0
条评论
首页
栏目
Wordpress Development
Javascript
React + Nextjs
Vue + nuxtjs
SEO
Java
Social Media
SEM
AstroJs
Linux
实体行业知识学习
shopify
页面
关于
搜索到
11
篇与
的结果
2026-11-05
注册菜单
①wp后台建页面② register_nav_menu(array( 'wp_devs_main_menu' => 'Main Menu' 'wp_devs_foot_menu' => 'Footer Menu'))③调用菜单
2026年11月05日
5 阅读
0 评论
0 点赞
2026-11-05
function.php
作用是调用css和js<?php function wpdevs_load_scripts(){ wp_enqueue_style('wpdevs-style',get_stylesheet_uri(),array(),filemtime(get_template_directory().'/style.css','all'); wp_enqueue_style('google-fonts','',arry(),null); wp_enqueue_script('dropdown',get_template_directory_uri().'/js/dropdown.js',arrray(),'1.0',true);} add_action('wp_enqueue_scripts','wpdevs_load_scripts');?>备注:filemtime(get_template_directory().'/style.css')这个最好在本地开发时使用,正式上线时,要改回1.0这样的版本号
2026年11月05日
5 阅读
0 评论
0 点赞
2026-11-05
index.php header及footer整理
index.php整理
2026年11月05日
6 阅读
0 评论
0 点赞
2026-11-05
Style.css撰写及主题封面
style.css重要属性:Theme Name:Theme URI:Author:Author URI:Description:Version:screenshot.png ( 1200*900 px)
2026年11月05日
6 阅读
0 评论
0 点赞
2026-11-05
LocalWP项目结构
wp-admin、wp-includes、wp-content三个文件夹主要开发主题区域位于 wp-content文件夹下theme里面,theme当中有两个必要的文件,分别为style.css和index.php。一般来说,一个完整的主题文件会包括header.php、footer.php、index.php、home.php(front-page.php)、archive.php、page.php、single.php、search.php、author.php、404.php、sidebar.phpstyle.css、functions.php、comments.php
2026年11月05日
6 阅读
0 评论
0 点赞
1
2
3