简体   繁体   中英

wordpress child theme not working

i am new to word press now i am working on wordpress child theme. now i am going to creat child theme of " Chulavista " theme.

i just creat a sub directory and creat file with name of style.css

in my style.css just place this code

@charset "utf-8";

/* CSS Document */

/*
Theme Name: chulavista Child
Theme URI: agilesoft.us
Description: Chulavista  child Theme
Author: Agilesoft
Version: 1.3
License: GNU General Public License
Template: chulavista
Tags: 
*/





@import url("../chulavista/style.css");

its simple. but when i activate child theme the layout font and header will be change and show recent post, meta, and category in top menu div.

i can't understand this behaviour. because when i activate parent theme it will be correct.

Please help me out of this problem...

Thanks in advance

Does Chulavista support child themes? If it hasn't been written with child themes in mind, it might not properly support them. eg if it uses get_template_directory_uri() instead of get_stylesheet_directory_uri() . Check the functions.php and header.php files in the Chulavista theme to see if that is the case.

The Child theme is an individual theme which relies on the Parent's theme files. When you activate the Child theme, you have to set the Appearance settings for the theme. Similar to what you do while activating another Parent theme.

Note that the layout font might be changing due to the same reason.

Your style.css is correct, your problem is something else.

I will assume that you are working on a Linux Environment .

If you want to install custom themes manually copying your theme directly in the wp-content/themes folder, be sure you create a symbolic link for it as well:

Example:

sudo ln -s /var/www/wordpress/wp-content/themes/your_theme/ /var/lib/wordpress/wp-content/themes/your_theme

I had the same problem as you and I fixed it by creating the symbolic link . Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM