我正在尝试通过子主题修改主题。作者已经创建了一个子主题。
我在样式表中添加了很多东西,但它不起作用。当我签入开发人员模式时。我看到样式表的链接rel是https://.../style.css?ver=494
和style.css?ver=494 为空
我认为功能。作者制作的php有一些问题,所以我附加了一些函数。php(子主题)此处:
<?php
// Exit if accessed directly
if ( !defined( \'ABSPATH\' ) ) exit;
// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED - Do not modify or remove comment markers above or below:
if ( !function_exists( \'chld_thm_cfg_parent_css\' ) ):
function chld_thm_cfg_parent_css() {
wp_enqueue_style( \'chld_thm_cfg_parent\', trailingslashit( get_template_directory_uri() ) . \'style.css\', array( \'bootstrap\',\'animate-css\',\'carousel-css\',\'fancybox-css\',\'webkit-css\',\'font-awesome-css\' ) );
}
endif;
add_action( \'wp_enqueue_scripts\', \'chld_thm_cfg_parent_css\', 10 );
// END ENQUEUE PARENT ACTION
我还附加了样式。css(子主题)如下:
/*
Theme Name: Fitnesspoint Child
Theme URI: http://fitnesspointwptheme.staging7.in/fitnesspoint/
Template: fitnesspoint
Author: multidots
Author URI: https://store.multidots.com/themes/wordpress-themes/
Description: Fitness Point is an Wordpress template for health sports club, personal gym trainer, gym, gym shop and fitness websites. It is a highly suitable template for fitness companies as well as gyms or sports clubs. It has the purpose oriented design, responsive layout and special features like gym shop, services, courses, fitness plans and other pages.
Tags: custom-header,custom-background,threaded-comments,sticky-post,translation-ready,microformats,editor-style,custom-menu
Version: 1.8.3
*/
#primary-menu i.fa.fa-home {
font-size: 20px;
}
section#huan-luyen {
background-repeat: no-repeat;
background-position: right;
background-size: auto 100%;
}
.back-to-top {
height: 130px;
right: 25px;
}
请帮帮我!!!
附言:我想听听你对更改mysite字体的想法。主题fitnesspoint使用以拉丁文为基础的谷歌字体。但我的网站是越南语的。如何更改?Tnx公司