url of child theme in wordpress

后端 未结 2 1753
栀梦
栀梦 2021-01-04 12:08

I want to create a website in wordpress, for this I take a theme and create a child theme.

I copy in the folder of the child a style.css and header.php, because I w

2条回答
  •  悲&欢浪女
    2021-01-04 12:35

    You need get_stylesheet_directory_uri, this function checks first in the child theme directory and then in the parent's. The one you're using only checks in the parent directory.

    Bottom line: if a function doesn't behave as you expect, check the Codex. Much probably you'll find out why over there.

提交回复
热议问题