Hi,
I inherited the Tyche theme to make a child theme but the website is not displayed correctly. It seems that the css does not load (or maybe javascript).
Here is the website link:
roqyasunna web site
Here are the functions.php and style.css under ~/wp-content/themes/tyche-child
:
– functions.php
<?php
/**
** activation theme
**/
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
$parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
– style.css
/*
Theme Name: Tyche Child
Theme URI: https://roqyasunna.com
Description: Tyche Child Theme for RoqyaSunna WebSite
Author: Author Name.
Author URI: https://roqyasunna.com
Template: tyche
Version: 0.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: tyche-child
*/
Can you guide me to solve this problem?