사이트가 있으며 로컬 호스트 모드로 작업하고 있습니다. 그러나 사이트를 업로드하면 두 번째 CSS가로드되지 않습니다.bloginfo ('template_url') - 다른 결과가 나타납니다.
좀 두 번째 CSS를 읽을
bloginfo('template_directory');
을 사용하고 또한 JS 파일이 작동
<link id="style_cor" rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/style/<?php echo $estilo_cor_variavel; ?>/style.css" type="text/css" media="screen" />
<script src="<?php bloginfo('template_directory'); ?>/js/site.js"></script>
내 JS가 파일을 읽을 수 있지만, CSS는 없습니다.
다른 경로를 생성합니다.
<link id="style_cor" rel="stylesheet" href="/site/wp-content/themes/site/style/padrao/style.css" type="text/css" media="screen">
<script src="http://site.com.br/wp-content/themes/site/js/site.js"></script>
나는 왜 같은 기능이 다른 결과를 만들어 내는지 모른다.
누군가 도움을 줄 수 있습니까?
1 && 단지 통지 : 귀하의 기능은 다음과 같이 보일 수도에 대한 스크립트/CSS를 설정하는 당신이 사용할 수있는 특정 페이지'is_page ('myPage_or_PageID')'/'is_single()'/'is_archive()'무엇이든 ... 요청/성능 저장하기 – pleinx