Re: ファイルマネージャーでアップロードした画像をcssの背景画像でも使用する方法について
2015年5月21日 at 15:18
hissy様
ご教授、ありがとうございます。
$this->getThemePath();を使って下記のコードを変更する事で、ファイルマネージャーでアップロードした画像を背景画像でも使用できました。
【変更前】
$this -> addHeaderItem('<link rel="stylesheet" media="screen" type="text/css" href="' . $this -> getStyleSheet('typography.css') . '" />');
【変更後】
$this -> addHeaderItem('<link rel="stylesheet" media="screen" type="text/css" href="' . $this -> getThemePath() . '/typography.css' . '" />');
Your post has been saved and will be published after approval by the forum moderator.