Magento 2 custom CSS is not loading after set new custom theme set on customer loginHow to add a custom CSS file in Magento 2How to change theme programmatically for specific controller in magento 2?CSS and JS is not loading in new thememagento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento Production Custom theme custom css file is not loadingMagento 2.2.5: Overriding Admin Controller sales/orderCustom CSS not loadingMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2 custom theme CSS and other resources not loadingHow to rename the product detail tab title, and display as the last tab?
1991 (I think) Trek 850 MTB bottom bracket replacement. Maybe similar to 830?
What European countries have secret voting within the Legislature?
How do I present a future free of gender stereotypes without being jarring or overpowering the narrative?
Why did the Apple //e make a hideous noise if you inserted the disk upside down?
By RAW, how can Prestidigitation create sound?
A* pathfinding algorithm too slow
Head on collision of two black holes
Early 2000s movie about time travel, protagonist travels back to save girlfriend, then into multiple points in future
What do you call a notepad used to keep a record?
pgfmath does not work
How can I know if a PDF file was created via LaTeX or XeLaTeX?
Origin of the convolution theorem
Android Studio 3.6 canary 6 - Gradle throwing DefaultProjectSyncIssues exception
Is it okay to fade a human face just to create some space to place important content over it?
Why was Pan Am Flight 103 flying over Lockerbie?
Closest Proximity of Oceans to Freshwater Springs
Making a wall made from glass bricks
What election rules and voting rights are guaranteed by the US Constitution?
Does a lens with a bigger max. aperture focus faster than a lens with a smaller max. aperture?
Explain usage of "kaved" re Moshe's raising his hands w/ war of Amaleq
On what to compliment someone with anorexia in order to improve their body image?
13th chords on guitar
Cooking a nice pan seared steak for picky eaters
Fully submerged water bath for stove top baking?
Magento 2 custom CSS is not loading after set new custom theme set on customer login
How to add a custom CSS file in Magento 2How to change theme programmatically for specific controller in magento 2?CSS and JS is not loading in new thememagento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento Production Custom theme custom css file is not loadingMagento 2.2.5: Overriding Admin Controller sales/orderCustom CSS not loadingMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2 custom theme CSS and other resources not loadingHow to rename the product detail tab title, and display as the last tab?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I set magento 2 luma theme for entire site if customer not login after customer login need set ultimo theme i have installed ultimo theme i am able to set
by using fallowing line $objectManager->get(MagentoFrameworkViewDesignInterface::class)->setDesignTheme('Infortis/pawan', 'frontend');
all working fine but when I write custom CSS it not loading it generating in pub folder but not loading
I have place custom CSS Magento_Theme/layout/default_head_blocks.xml
my XML file
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="css/font-awesome.min.css" />
<css src="css/test.css" />
</head>
</page>
but in frontend when I login all phtml files and other files loading but CSS and js not loading any idea how
in magento 1 by using below code I can set easily I want same in magento 2 any idea Mage::getDesign()->setArea('frontend')->setPackageName('tricore')->setTheme('pawan');
.
magento2 css custom-theme
add a comment |
I set magento 2 luma theme for entire site if customer not login after customer login need set ultimo theme i have installed ultimo theme i am able to set
by using fallowing line $objectManager->get(MagentoFrameworkViewDesignInterface::class)->setDesignTheme('Infortis/pawan', 'frontend');
all working fine but when I write custom CSS it not loading it generating in pub folder but not loading
I have place custom CSS Magento_Theme/layout/default_head_blocks.xml
my XML file
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="css/font-awesome.min.css" />
<css src="css/test.css" />
</head>
</page>
but in frontend when I login all phtml files and other files loading but CSS and js not loading any idea how
in magento 1 by using below code I can set easily I want same in magento 2 any idea Mage::getDesign()->setArea('frontend')->setPackageName('tricore')->setTheme('pawan');
.
magento2 css custom-theme
add a comment |
I set magento 2 luma theme for entire site if customer not login after customer login need set ultimo theme i have installed ultimo theme i am able to set
by using fallowing line $objectManager->get(MagentoFrameworkViewDesignInterface::class)->setDesignTheme('Infortis/pawan', 'frontend');
all working fine but when I write custom CSS it not loading it generating in pub folder but not loading
I have place custom CSS Magento_Theme/layout/default_head_blocks.xml
my XML file
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="css/font-awesome.min.css" />
<css src="css/test.css" />
</head>
</page>
but in frontend when I login all phtml files and other files loading but CSS and js not loading any idea how
in magento 1 by using below code I can set easily I want same in magento 2 any idea Mage::getDesign()->setArea('frontend')->setPackageName('tricore')->setTheme('pawan');
.
magento2 css custom-theme
I set magento 2 luma theme for entire site if customer not login after customer login need set ultimo theme i have installed ultimo theme i am able to set
by using fallowing line $objectManager->get(MagentoFrameworkViewDesignInterface::class)->setDesignTheme('Infortis/pawan', 'frontend');
all working fine but when I write custom CSS it not loading it generating in pub folder but not loading
I have place custom CSS Magento_Theme/layout/default_head_blocks.xml
my XML file
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="css/font-awesome.min.css" />
<css src="css/test.css" />
</head>
</page>
but in frontend when I login all phtml files and other files loading but CSS and js not loading any idea how
in magento 1 by using below code I can set easily I want same in magento 2 any idea Mage::getDesign()->setArea('frontend')->setPackageName('tricore')->setTheme('pawan');
.
magento2 css custom-theme
magento2 css custom-theme
edited Jun 21 at 10:10
Pawankumar
asked Jun 20 at 18:54
PawankumarPawankumar
4085 silver badges19 bronze badges
4085 silver badges19 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Also check that your custom css is found
or give 404 error
.
Go to view code, find your css/test.css
path and click it. Here you can check that css is found or it gives 404 error.
no it not showing in browser
– Pawankumar
Jun 21 at 8:37
It means your given css path is not right. please refer this link magento.stackexchange.com/questions/108685/…
– Chirag Parmar
Jun 21 at 9:24
given right path web/css/test.css
– Pawankumar
Jun 21 at 9:27
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2fmagento.stackexchange.com%2fquestions%2f279076%2fmagento-2-custom-css-is-not-loading-after-set-new-custom-theme-set-on-customer-l%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
Also check that your custom css is found
or give 404 error
.
Go to view code, find your css/test.css
path and click it. Here you can check that css is found or it gives 404 error.
no it not showing in browser
– Pawankumar
Jun 21 at 8:37
It means your given css path is not right. please refer this link magento.stackexchange.com/questions/108685/…
– Chirag Parmar
Jun 21 at 9:24
given right path web/css/test.css
– Pawankumar
Jun 21 at 9:27
add a comment |
Also check that your custom css is found
or give 404 error
.
Go to view code, find your css/test.css
path and click it. Here you can check that css is found or it gives 404 error.
no it not showing in browser
– Pawankumar
Jun 21 at 8:37
It means your given css path is not right. please refer this link magento.stackexchange.com/questions/108685/…
– Chirag Parmar
Jun 21 at 9:24
given right path web/css/test.css
– Pawankumar
Jun 21 at 9:27
add a comment |
Also check that your custom css is found
or give 404 error
.
Go to view code, find your css/test.css
path and click it. Here you can check that css is found or it gives 404 error.
Also check that your custom css is found
or give 404 error
.
Go to view code, find your css/test.css
path and click it. Here you can check that css is found or it gives 404 error.
answered Jun 21 at 5:24
Chirag ParmarChirag Parmar
668 bronze badges
668 bronze badges
no it not showing in browser
– Pawankumar
Jun 21 at 8:37
It means your given css path is not right. please refer this link magento.stackexchange.com/questions/108685/…
– Chirag Parmar
Jun 21 at 9:24
given right path web/css/test.css
– Pawankumar
Jun 21 at 9:27
add a comment |
no it not showing in browser
– Pawankumar
Jun 21 at 8:37
It means your given css path is not right. please refer this link magento.stackexchange.com/questions/108685/…
– Chirag Parmar
Jun 21 at 9:24
given right path web/css/test.css
– Pawankumar
Jun 21 at 9:27
no it not showing in browser
– Pawankumar
Jun 21 at 8:37
no it not showing in browser
– Pawankumar
Jun 21 at 8:37
It means your given css path is not right. please refer this link magento.stackexchange.com/questions/108685/…
– Chirag Parmar
Jun 21 at 9:24
It means your given css path is not right. please refer this link magento.stackexchange.com/questions/108685/…
– Chirag Parmar
Jun 21 at 9:24
given right path web/css/test.css
– Pawankumar
Jun 21 at 9:27
given right path web/css/test.css
– Pawankumar
Jun 21 at 9:27
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- 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%2fmagento.stackexchange.com%2fquestions%2f279076%2fmagento-2-custom-css-is-not-loading-after-set-new-custom-theme-set-on-customer-l%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