首页
关于
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 Query查询类
WP Query查询类添加链接 permalink<?php the_permalink();?>single.php<?php get_header() ?> <?php get_footer() ?>
2026年11月05日
8 阅读
0 评论
0 点赞
2026-11-05
Sidebar侧边栏开发
Sidebar侧边栏开发add_action('widgets_int','wpdevs_sidebars');function wpdevs_sidebars(){ register_sidebar( array( 'name' => 'Blog Sidebar', 'id' =>'sidebar-blog', 'description' =>'This is the Blog Sidebar.You can add your widget here.', 'before_widget' => '<div class ="widget-wrapper">', 'after_widget' => '</div>', 'before_title' => '<h4 class ="widget-title">' 'after_title' => '</h4>' ));}注册新php文件,sidebar.php <?php if(is_active_sidebar('sidebar-blog')): ?><aside class = "sidebar"> <?php dynamic_sidebar('sidebar-blog'); ?> <aside/><?php endif;调用sidebar侧边栏,<?php get_sidebar();>调用侧边栏后,去wordpress后台找widgets 然后设置小部件
2026年11月05日
8 阅读
0 评论
0 点赞
2026-11-05
主题支持函数
Add_theme_support 主题支持函数接上面function.php函数修改,function wpdevs_config(){register_nav_menu( array( 'wp_devs_main_menu' => 'Main Menu' 'wp_devs_foot_menu' => 'Footer Menu' ))$args = array( 'height' -> 225, 'weight' -> 1920); add_theme_support('custom-header', $args); add_theme_support('post-thumbnails'); add_theme_support('custom-logo',array( 'width'->200, 'height'->100, 'flex-width'->true, 'flex-height'->true ))}add_action('after_setup_theme','wpdevs_config',0);//0代表处理函数优先级,最先处理add_action('after_setup_theme','wpdevs_config',0);//0代表处理函数优先级,最先处理调用header主题图片,代码:
2026年11月05日
5 阅读
0 评论
0 点赞
2026-11-05
页面创建
页面创建方式:①后台直接创建页面,然后在文件夹下面创建 page-{slug}.php②建generate-template.php,后面也可以建blog-template.php。blog-template.php其实完全可以实现。
2026年11月05日
6 阅读
0 评论
0 点赞
2026-11-05
移动端响应式设置
暂无简介
2026年11月05日
7 阅读
0 评论
0 点赞
1
2
3