私はWordPressで子テーマを作成しています。私はcssとjavascriptを含むassetsフォルダをアップロードしました。それはカスタムテーマになります。WordPressで子テーマのURLを取得するには?
タグの中には、CSSファイルを取得するためのCSSファイルが含まれています。それはicomoonフォルダの後Styles.cssをなしている場合
<link href="<?php echo get_stylesheet_directory_uri(); ?>/assets/css/icons/icomoon/styles.css" rel="stylesheet" type="text/css">
以下のコードに動作します:
は、以下の私の現在のコードに問題があります。
<link href="<?php echo get_stylesheet_directory_uri(); ?>/assets/css/icons/icomoon" rel="stylesheet" type="text/css">
ように私は出力にそれをしたい:私には、ファイルの末尾にStyles.cssをしたい//child_theme_url/assets/css/icons/icomoon/styles.css
。
助けてください。 get_template_directory_uri()
代わりget_stylesheet_directory_uri()
重複としてよりもむしろにリンク[http://stackoverflow.com/a/18724137/1719246](http://stackoverflow.com/a/18724137/1719246) – softsdev
@softsdev Plsのフラグを確認してくださいそれは –
[wordpressの子供のテーマのURL]の可能な複製(http://stackoverflow.com/questions/18724007/url-of-child-theme-in-wordpress) –