Wordpress: Issue registering/enqueueing style sheetWordPress Adding an Extra Tag to enqueueWordPress load more posts with ajax not workingWordpress is adding an extra ip address in URL for css and js sources. How do I fix this?Partial Entry (Gravity Forms) not working with WooCommerce integration ChromeBEM in Wordpress/BoostrapWordpress Plugin - change dynamic styles sheet to load under httpsAjax Error - Wordpressautoptimize showing error 404 in wordpressWordpress Woocommerce Reports page issueWordpress problem in path with javascript

Is there any evidence to support the claim that the United States was "suckered into WW1" by Zionists, made by Benjamin Freedman in his 1961 speech

Why do the Avengers care about returning these items in Endgame?

How do carbureted and fuel injected engines compare in high altitude?

Compactness in normed vector spaces.

What can cause an unfrozen indoor copper drain pipe to crack?

Why is it wrong to *implement* myself a known, published, widely believed to be secure crypto algorithm?

Probability of taking balls without replacement from a bag question

Not taking the bishop with the knight, why?

How likely are Coriolis-effect-based quirks to develop in starship crew members?

Pre-1993 comic in which Wolverine's claws were turned to rubber?

What's an appropriate age to involve kids in life changing decisions?

Thawing Glaciers return to hand interaction

Row vectors and column vectors (Mathematica vs Matlab)

Are double contractions formal? Eg: "couldn't've" for "could not have"

What is the Ancient One's mistake?

My perfect evil overlord plan... or is it?

Was the Highlands Ranch shooting the 115th mass shooting in the US in 2019

Why is there a cap on 401k contributions?

Renting a house to a graduate student in my department

Gift for mentor after his thesis defense?

Can I bring back Planetary Romance as a genre?

TeX Gyre Pagella Math Integral sign much too small

Is it safe to keep the GPU on 100% utilization for a very long time?

How can I test a shell script in a "safe environment" to avoid harm to my computer?



Wordpress: Issue registering/enqueueing style sheet


WordPress Adding an Extra Tag to enqueueWordPress load more posts with ajax not workingWordpress is adding an extra ip address in URL for css and js sources. How do I fix this?Partial Entry (Gravity Forms) not working with WooCommerce integration ChromeBEM in Wordpress/BoostrapWordpress Plugin - change dynamic styles sheet to load under httpsAjax Error - Wordpressautoptimize showing error 404 in wordpressWordpress Woocommerce Reports page issueWordpress problem in path with javascript






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















New to wordpress and I can't get stylesheets to load in my plugin. Either that or thier effects are being overridden. This is what I have in my main plugin.php file:



function load_pc_scripts() 
wp_register_style('plugin-style', plugin_dir_url(__FILE__) . 'plugin-style.css');
wp_enqueue_style('plugin-style');

add_action('wp_enqueue_scripts', 'load_pc_scripts');


The style sheet is in the same directory but console shows this:



plugin-style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.1.1:8 JQMIGRATE: Migrate is installed, version 1.4.1
plugin-style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
options-general.php?page=price-compare-settings:1 Unchecked runtime.lastError: The message port closed before a response was received.
plugin-style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)









share|improve this question




























    0















    New to wordpress and I can't get stylesheets to load in my plugin. Either that or thier effects are being overridden. This is what I have in my main plugin.php file:



    function load_pc_scripts() 
    wp_register_style('plugin-style', plugin_dir_url(__FILE__) . 'plugin-style.css');
    wp_enqueue_style('plugin-style');

    add_action('wp_enqueue_scripts', 'load_pc_scripts');


    The style sheet is in the same directory but console shows this:



    plugin-style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
    load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.1.1:8 JQMIGRATE: Migrate is installed, version 1.4.1
    plugin-style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
    options-general.php?page=price-compare-settings:1 Unchecked runtime.lastError: The message port closed before a response was received.
    plugin-style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)









    share|improve this question
























      0












      0








      0








      New to wordpress and I can't get stylesheets to load in my plugin. Either that or thier effects are being overridden. This is what I have in my main plugin.php file:



      function load_pc_scripts() 
      wp_register_style('plugin-style', plugin_dir_url(__FILE__) . 'plugin-style.css');
      wp_enqueue_style('plugin-style');

      add_action('wp_enqueue_scripts', 'load_pc_scripts');


      The style sheet is in the same directory but console shows this:



      plugin-style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
      load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.1.1:8 JQMIGRATE: Migrate is installed, version 1.4.1
      plugin-style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
      options-general.php?page=price-compare-settings:1 Unchecked runtime.lastError: The message port closed before a response was received.
      plugin-style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)









      share|improve this question














      New to wordpress and I can't get stylesheets to load in my plugin. Either that or thier effects are being overridden. This is what I have in my main plugin.php file:



      function load_pc_scripts() 
      wp_register_style('plugin-style', plugin_dir_url(__FILE__) . 'plugin-style.css');
      wp_enqueue_style('plugin-style');

      add_action('wp_enqueue_scripts', 'load_pc_scripts');


      The style sheet is in the same directory but console shows this:



      plugin-style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
      load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.1.1:8 JQMIGRATE: Migrate is installed, version 1.4.1
      plugin-style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
      options-general.php?page=price-compare-settings:1 Unchecked runtime.lastError: The message port closed before a response was received.
      plugin-style.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)






      wordpress






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 23 at 9:06









      Sean DezoysaSean Dezoysa

      343317




      343317






















          1 Answer
          1






          active

          oldest

          votes


















          0














          If the console is showing a 404 then enqueue is working, you likely have a typo in the file name or party in one place or another






          share|improve this answer























          • I see it now, there is an extra . after the folder portion of the url: localhost:3000/wptest2./plugin-style.css?ver=5.1.1. I guess I'll need to strip that out

            – Sean Dezoysa
            Mar 23 at 12:00











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55312203%2fwordpress-issue-registering-enqueueing-style-sheet%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          If the console is showing a 404 then enqueue is working, you likely have a typo in the file name or party in one place or another






          share|improve this answer























          • I see it now, there is an extra . after the folder portion of the url: localhost:3000/wptest2./plugin-style.css?ver=5.1.1. I guess I'll need to strip that out

            – Sean Dezoysa
            Mar 23 at 12:00















          0














          If the console is showing a 404 then enqueue is working, you likely have a typo in the file name or party in one place or another






          share|improve this answer























          • I see it now, there is an extra . after the folder portion of the url: localhost:3000/wptest2./plugin-style.css?ver=5.1.1. I guess I'll need to strip that out

            – Sean Dezoysa
            Mar 23 at 12:00













          0












          0








          0







          If the console is showing a 404 then enqueue is working, you likely have a typo in the file name or party in one place or another






          share|improve this answer













          If the console is showing a 404 then enqueue is working, you likely have a typo in the file name or party in one place or another







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 23 at 11:26









          Jordan CauleyJordan Cauley

          21915




          21915












          • I see it now, there is an extra . after the folder portion of the url: localhost:3000/wptest2./plugin-style.css?ver=5.1.1. I guess I'll need to strip that out

            – Sean Dezoysa
            Mar 23 at 12:00

















          • I see it now, there is an extra . after the folder portion of the url: localhost:3000/wptest2./plugin-style.css?ver=5.1.1. I guess I'll need to strip that out

            – Sean Dezoysa
            Mar 23 at 12:00
















          I see it now, there is an extra . after the folder portion of the url: localhost:3000/wptest2./plugin-style.css?ver=5.1.1. I guess I'll need to strip that out

          – Sean Dezoysa
          Mar 23 at 12:00





          I see it now, there is an extra . after the folder portion of the url: localhost:3000/wptest2./plugin-style.css?ver=5.1.1. I guess I'll need to strip that out

          – Sean Dezoysa
          Mar 23 at 12:00



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55312203%2fwordpress-issue-registering-enqueueing-style-sheet%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          위키백과:대문 둘러보기 메뉴기부 안내모바일판 대문크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0CebuanoDeutschEnglishEspañolFrançaisItaliano日本語NederlandsPolskiPortuguêsРусскийSvenskaTiếng ViệtWinaray中文العربيةCatalàفارسیSrpskiУкраїнськаБългарскиНохчийнČeštinaDanskEsperantoEuskaraSuomiעבריתMagyarՀայերենBahasa IndonesiaҚазақшаBaso MinangkabauBahasa MelayuBân-lâm-gúNorskRomânăSrpskohrvatskiSlovenčinaTürkçe

          용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh