2017-03-14 1 views
0

저는 Wordpress를 사용하여 웹 사이트를 개발하는 초보자입니다. 다음 URL의 단계를 따르십시오. www.siteground.com/tutorials/wordpress/wordpress_create_theme.htm왜 Wordpress는 리소스를로드하지 못했습니다? 서버가 404 (찾지 못함) 상태로 응답했다.

다른 웹 사이트에서 일부 템플릿을 다운로드했습니다. Wordpress와 통합 한 후에도 코드를 수정하고 PHP 코드를 추가합니다. CSS의 의미와 자바 스크립트를 읽을 수 없습니다

jquery.slidertron.min.js Failed to load resource: the server responded with a status of 404 (Not Found) 
http://localhost/wordpress/sample-page/css/style.css Failed to load resource: the server responded with a status of 404 (Not Found) 

: 그것은 나에게 오류를 보여줍니다

<html lang="en"> 
<head> 
    <title> </title> 
    <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    <meta name="description" content="" /> 
    <meta name="keywords" content="" /> 
    <meta name="description" content="Bootstrap 3 responsive centered columns"> 
    <meta charset="UTF-8" /> 

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 

    <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
    <meta name="author" content="Codrops" /> 
    <script> 
    var template_dir_js = "<?php echo get_template_directory_uri();?>"; 
    </script> 
    <!--[if lte IE 8]><script src="css/ie/html5shiv.js"></script><![endif]--> 
    <script src="<?php echo get_template_directory_uri(); ?>/js/jquery.min.js" type="text/javascript"></script> 
    <script src="<?php echo get_template_directory_uri(); ?>/js/jquery.dropotron.min.js" type="text/javascript"></script> 
    <script src="<?php echo get_template_directory_uri(); ?>/js/jquery.slidertron.min.js" type="text/javascript"></script> 
    <script src="<?php echo get_template_directory_uri(); ?>/js/skel.min.js" type="text/javascript"></script> 
    <script src="<?php echo get_template_directory_uri(); ?>/js/skel-layers.min.js" type="text/javascript"></script> 
    <script src="<?php echo get_template_directory_uri(); ?>/js/init.js" type="text/javascript"></script> 
    <script src="<?php echo get_template_directory_uri(); ?>/js/bootstrap.js" type="text/javascript"></script> 
    <script src="<?php echo get_template_directory_uri(); ?>/js/modernizr.custom.js" type="text/javascript"></script> 
    <script src="<?php echo get_template_directory_uri(); ?>/js/foundation.js" type="text/javascript"></script> 
    <script src="<?php echo get_template_directory_uri(); ?>/js/foundation.min.js" type="text/javascript"></script> 
    <meta charset="utf-8"> 
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
    <meta name="generator" content="PSPad editor, www.pspad.com"> 
    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> 
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> 
    <link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> 
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> 
    <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> 
    <script src='https://www.google.com/recaptcha/api.js'></script> 
    <script src="https://code.jquery.com/jquery-1.10.2.js"></script> 
    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet"> 
     <link rel="shortcut icon" href="../favicon.ico">   
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>    
     <noscript> 
     <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_directory');?>/css/skel.css" /> 
     <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_directory');?>/style.css" /> 
     <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_directory');?>/css/style-desktop.css" /> 
     <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_directory');?>/css/style-mobile.css" /> 
     <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_directory');?>/css/fakeLoader.css" /> 
     <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_directory');?>/css/bootstrap.css" /> 
     <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_directory');?>/css/bootstrap-theme.css" /> 
     <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_directory');?>/css/gravity-forms-bootstrap.css"/> 
     <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_directory');?>/css/default.css" /> 
     <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_directory');?>/css/component.css" /> 
     <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_directory');?>/css/foundation-flex.css" /> 
     <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_directory');?>/css/foundation.css" /> 
     <link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_directory');?>/css/foundation.min.css" /> 
    </noscript> 
</head> 
<!-- Header Wrapper --> 
     <div id="header-wrapper"> 
      <div class="container"> 
       <div class="row"> 
        <div class="12u"> 

         <!-- Header --> 
          <header id="header"> 

           <!-- Logo --> 
            <h1><a href="index.html" id="logo">Beyond</a></h1> 

           <!-- Nav --> 
            <nav id="nav"> 
             <ul> 
              <li class="current_page_item"><a href="index.html">Home</a></li> 
              <li> 
               <a href="" class="arrow">Dropdown</a> 
               <ul> 
                <li><a href="#">Lorem ipsum dolor</a></li> 
                <li><a href="#">Magna phasellus</a></li> 
                <li><a href="#">Etiam dolore nisl</a></li> 
                <li> 
                 <span class="arrow">Phasellus consequat</span> 
                 <ul> 
                  <li><a href="#">Lorem ipsum dolor</a></li> 
                  <li><a href="#">Phasellus consequat</a></li> 
                  <li><a href="#">Magna phasellus</a></li> 
                  <li><a href="#">Etiam dolore nisl</a></li> 
                  <li><a href="#">Veroeros feugiat</a></li> 
                 </ul> 
                </li> 
                <li><a href="#">Veroeros feugiat</a></li> 
               </ul> 
              </li> 
              <li><a href="left-sidebar.html">Left Sidebar</a></li> 
              <li><a href="right-sidebar.html">Right Sidebar</a></li> 
              <li><a href="no-sidebar.html">No Sidebar</a></li> 
             </ul> 
            </nav> 

          </header> 

         <!-- Banner --> 
          <div id="banner"> 
           <div class="caption"> 
            <h2>Sed <span>nullam</span></h2> 
            <p>Felis temper matinos elemer feugiat</p> 
           </div> 
          </div> 

        </div> 
       </div> 
      </div> 
     </div> 

. 이 오류에 대한 해결책이 있습니까? 나는 여러 번 시도했지만 또한 그것을 해결할 수 없습니다. 이 오류를 해결하는 방법을 가르쳐주세요. 나는 도움이 필요해. 당신을

File directory CSS File

+0

http : //localhost/wordpress/sample-page/css/style.css로 이동할 수 없다고 가정합니다. http : // localhost/wordpress /? – mayersdesign

+0

예 찾을 수 없습니다. – fanjass

답변

0

워드 프레스 자산을가 대기 상태 기반으로 자산 파이프 라인을했습니다 감사합니다. See more on this here.

헤더 템플릿에 스타일 시트 호출을 추가하는 대신 엔큐 파일에 추가해야합니다. 추가 자바 스크립트와 동일합니다. 이 방법은 WordPress가 자산을 인식하고 쉽게 작업 할 수 있음을 의미합니다.

또한 원본에서 작업하지 않고 원래 테마를 기반으로 하위 테마를 설정했는지 확인하십시오. 그런 다음 원래 테마가 업데이트되면 변경 사항이 지워지지 않습니다. More on child themes here.

Style.css는 테마 또는 하위 테마의 이름을로드 할 때 WordPress에 알려주며 필수이므로 테마의 루트 디렉토리에서 style.css를 이동하거나 제거하지 마십시오.

관련 문제