채택완료

index.php에 css를 불러오는방법

2018-06-09 (토) 20:40:07 3,979

/www/theme/basic/css/common.css가 있는데요

/www/theme/basic/shop/index.php에

php로 부르고싶어요 javascript로 호출된다면 알려주세요

<?php include_once(G5_THEME_PATH.'/css/common.css'); ?>라고 적었더니

common.css 내용물이 index.php에 와르르 출력되더라고요 ㅠㅠ,.,,

어떻게 적용시키나요??

|

답변 1개 / 댓글 1개

채택된 답변
+20 포인트

<link rel="stylesheet" href="<?php echo G5_THEME_URL ?>/css/common.css"> 

답변에 대한 댓글 1개

정말감사합니다 : )

답변을 작성하려면 로그인이 필요합니다.