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;
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
add a comment |
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
add a comment |
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
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
wordpress
asked Mar 23 at 9:06
Sean DezoysaSean Dezoysa
343317
343317
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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