admin管理员组文章数量:1429190
I have just created my first child theme using ThemeGrill's Flash Pro as the parent. I followed the directions from ThemeGrill exactly to create the theme, even downloading the code from their site to populate the functions.php and style.css files in my child theme. After I created the theme it is visible under the theme options for the site I am working on but the theme is blank. When I attempt a live preview nothing is visible. I thought maybe that was just a quirk with the Live Preview so I Activated the theme. Once I did that the entire site went down and I had to hack the DB and update the wp-contents table to switch back to the standard Flash Pro theme.
I have reached out to ThemeGrill to see what their suggestions are but the can only help if they have access to the site. Currently I am running all of this on an internal dev server so providing them access is not optimal. I can do that but want to keep it as a last resort.
I am running wordpress 5.1.1 multisite on a bitnami image. Here is my code for both the functions.php and stlye.css files.
/*
Theme Name: Flash Pro Pioneer Graphics
Theme URI: /
Description: Pioneer Graphics Child Theme for Flash Pro
Author: ThemeGrill
Author URI:
Template: flash-pro
Version: 1.0
*/
/* =Theme customization starts here
------------------------------------------------------- */
<?php
/**
* Child theme functions file goes here
*/
function flash-pro_pioneergraphics_enqueue_styles() {
$parent_style = 'flash-style'; // Parent theme style handle 'flash-style'.
// Enqueue parent and child theme style.css
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'flash-pro_pioneergraphics-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get( 'Version' )
);
}
add_action( 'wp_enqueue_scripts', 'flash-pro_pioneergraphics_enqueue_styles' );
I have confirmed the directory and file permissions for the new child theme and files are the same as the parent directory and files. I have also searched StackExchange and tried to use solutions from other posts but nothing is working.
What am I doing wrong?
本文标签: multisiteCreated child theme from Themegrill FlashPro and the child theme is blank
版权声明:本文标题:multisite - Created child theme from Themegrill Flash-Pro and the child theme is blank 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745531133a2662065.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论