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

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript