php Genesis / WordPress - 在儿童主题中注册和排队自定义样式表

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php Genesis / WordPress - 在儿童主题中注册和排队自定义样式表相关的知识,希望对你有一定的参考价值。

// Enqueue Scripts and Styles
add_action( 'wp_enqueue_scripts', 'genesis_sample_enqueue_scripts_styles' );
function genesis_sample_enqueue_scripts_styles() {
        
  // Register and Enqueue custom stylesheet located in Child Theme 
  // rename your-child-theme-css to whatever you want, but use the dashes 
  // get_stylesheet_directory_url ist the path to your child theme
  // style.css is the name of the file
  
  wp_register_style( 'your-child-theme-css', get_stylesheet_directory_uri() . '/style.css', array(), CHILD_THEME_VERSION );
	wp_enqueue_style( 'your-child-theme-css' );
       
}

以上是关于php Genesis / WordPress - 在儿童主题中注册和排队自定义样式表的主要内容,如果未能解决你的问题,请参考以下文章

text 将Retina徽标添加到Genesis或WordPress主题

php 精选图片,genesis.php

php 使用genesis_footer_creds_text过滤器更改Genesis中的页脚文本

PHP WordPress 错误 - 可捕获的致命错误:WP_Term 类的对象无法转换为字符串

php 从Genesis页面中删除标题

php 修改Genesis内容限制阅读更多链接