’ シングルクォーテーションを ” ダブルクォーテーションで出力
-
function.phpにて出力するCSSを下記のように書いていますが
function register_style() {
wp_register_style(‘default’, home_url().’/common/css/default.css’);
中略
}
function add_stylesheet() {
register_style();
// 全ページ共通
wp_enqueue_style(‘default’);
中略
}
add_action(‘wp_print_styles’, ‘add_stylesheet’);出力が下記になります。
<link rel=’stylesheet’ id=’default-css’ href=’http://hogehoge/common/css/default.css’ type=’text/css’ media=’all’ />
出力される ’ シングルクォーテーションを ” ダブルクォーテーションで出力できないものでしょうか
2件の返信を表示中 - 1 - 2件目 (全2件中)
2件の返信を表示中 - 1 - 2件目 (全2件中)
- トピック「 ’ シングルクォーテーションを ” ダブルクォーテーションで出力」には新たに返信することはできません。