وردپرس
GCT messes up Appearance –> Editor
We used Generate Child Theme to create a child instance of Twenty Twentyfour. The installation went fine.
But the WP Editor is now dead. Going to Appearance –> Editor results in a blank screen that seems to hang.
When reactivating the parent, everything is fine. When activating the child, the Edit screen is dead.
The PHP code that was automatically created reads:
<?php
/*
- This is the child theme for Twenty Twenty-Four theme, generated with Generate Child Theme plugin by catchthemes.
* - (Please see https://developer.wordpress.org/themes/advanced-topics/child-themes/#how-to-create-a-child-theme)
*/
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
function my_theme_enqueue_styles() {
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’)
);
}
Please advise.
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس