Magento 2 image not foundAdd to Cart overlapping Product Price - How to fix? (Magento Product List Widget)Get URL of the static content folder (for backend)What is the REST API call to create a product with the image already hosted on a CDNMagento 2: How to get resize image for Custom Module?Magento 2: Image Upload JS ValidationMagento 2 - Remove video from gallery in product pageMagento 2 - Custom contact form not showing upHow to Update Magento 2 configurable child products price by REST APIMagento 2 model for adding images to media folder (not for products)?Magento 2: Error when running resize command
How can we prove that any integral in the set of non-elementary integrals cannot be expressed in the form of elementary functions?
How to be diplomatic in refusing to write code that breaches the privacy of our users
Two monoidal structures and copowering
Proof of work - lottery approach
Applicability of Single Responsibility Principle
You cannot touch me, but I can touch you, who am I?
Increase performance creating Mandelbrot set in python
Avoiding estate tax by giving multiple gifts
Gears on left are inverse to gears on right?
Opposite of a diet
I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?
A particular customize with green line and letters for subfloat
Are student evaluations of teaching assistants read by others in the faculty?
Inappropriate reference requests from Journal reviewers
Trouble understanding the speech of overseas colleagues
Method to test if a number is a perfect power?
How can a function with a hole (removable discontinuity) equal a function with no hole?
Escape a backup date in a file name
Would a high gravity rocky planet be guaranteed to have an atmosphere?
Why escape if the_content isnt?
Would this custom Sorcerer variant that can only learn any verbal-component-only spell be unbalanced?
How does Loki do this?
How do I go from 300 unfinished/half written blog posts, to published posts?
How did Doctor Strange see the winning outcome in Avengers: Infinity War?
Magento 2 image not found
Add to Cart overlapping Product Price - How to fix? (Magento Product List Widget)Get URL of the static content folder (for backend)What is the REST API call to create a product with the image already hosted on a CDNMagento 2: How to get resize image for Custom Module?Magento 2: Image Upload JS ValidationMagento 2 - Remove video from gallery in product pageMagento 2 - Custom contact form not showing upHow to Update Magento 2 configurable child products price by REST APIMagento 2 model for adding images to media folder (not for products)?Magento 2: Error when running resize command
I'm writing a callback module and when i try to insert image like following:
a#popup-button
display: block;
width: 50px;
height: 50px;
background: url("../images/phone-icon.png") no-repeat;
background-size: contain;
background-position: center center;
font-size: 0;
I get
magento2 css less
add a comment |
I'm writing a callback module and when i try to insert image like following:
a#popup-button
display: block;
width: 50px;
height: 50px;
background: url("../images/phone-icon.png") no-repeat;
background-size: contain;
background-position: center center;
font-size: 0;
I get
magento2 css less
Did you run frontend deployment after adding image?
– Muhammad Anas
yesterday
can you check if image is there inpub/static/frontend/Magento/luma/en_US/images
?
– Muhammad Anas
yesterday
@MuhammadAnas no, but it's static
– Kirill Dudka
yesterday
1
You need to run static deploy command, it will create a copy of image in required directory
– Muhammad Anas
yesterday
add a comment |
I'm writing a callback module and when i try to insert image like following:
a#popup-button
display: block;
width: 50px;
height: 50px;
background: url("../images/phone-icon.png") no-repeat;
background-size: contain;
background-position: center center;
font-size: 0;
I get
magento2 css less
I'm writing a callback module and when i try to insert image like following:
a#popup-button
display: block;
width: 50px;
height: 50px;
background: url("../images/phone-icon.png") no-repeat;
background-size: contain;
background-position: center center;
font-size: 0;
I get
magento2 css less
magento2 css less
asked yesterday
Kirill DudkaKirill Dudka
606
606
Did you run frontend deployment after adding image?
– Muhammad Anas
yesterday
can you check if image is there inpub/static/frontend/Magento/luma/en_US/images
?
– Muhammad Anas
yesterday
@MuhammadAnas no, but it's static
– Kirill Dudka
yesterday
1
You need to run static deploy command, it will create a copy of image in required directory
– Muhammad Anas
yesterday
add a comment |
Did you run frontend deployment after adding image?
– Muhammad Anas
yesterday
can you check if image is there inpub/static/frontend/Magento/luma/en_US/images
?
– Muhammad Anas
yesterday
@MuhammadAnas no, but it's static
– Kirill Dudka
yesterday
1
You need to run static deploy command, it will create a copy of image in required directory
– Muhammad Anas
yesterday
Did you run frontend deployment after adding image?
– Muhammad Anas
yesterday
Did you run frontend deployment after adding image?
– Muhammad Anas
yesterday
can you check if image is there in
pub/static/frontend/Magento/luma/en_US/images
?– Muhammad Anas
yesterday
can you check if image is there in
pub/static/frontend/Magento/luma/en_US/images
?– Muhammad Anas
yesterday
@MuhammadAnas no, but it's static
– Kirill Dudka
yesterday
@MuhammadAnas no, but it's static
– Kirill Dudka
yesterday
1
1
You need to run static deploy command, it will create a copy of image in required directory
– Muhammad Anas
yesterday
You need to run static deploy command, it will create a copy of image in required directory
– Muhammad Anas
yesterday
add a comment |
2 Answers
2
active
oldest
votes
once try with bellow code
<img src="https://example.com/pub/media/social/whatsapp_new.jpg" style="margin: 0px 3px -5px 5px;" alt="call back">+91 </span>
add a comment |
Place your image at below location
magento_rootappdesignfrontendVendorthemewebimages
Put below code into your .css
file
body
background: url('../images/brushed_alu.png')top center;
Put .css
file of your theme at below location
magento_rootappdesignfrontendVendorthemewebcssstyle.css(your
.css file)
After that run below commands from your root directory of Magento
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
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%2f267429%2fmagento-2-image-not-found%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
once try with bellow code
<img src="https://example.com/pub/media/social/whatsapp_new.jpg" style="margin: 0px 3px -5px 5px;" alt="call back">+91 </span>
add a comment |
once try with bellow code
<img src="https://example.com/pub/media/social/whatsapp_new.jpg" style="margin: 0px 3px -5px 5px;" alt="call back">+91 </span>
add a comment |
once try with bellow code
<img src="https://example.com/pub/media/social/whatsapp_new.jpg" style="margin: 0px 3px -5px 5px;" alt="call back">+91 </span>
once try with bellow code
<img src="https://example.com/pub/media/social/whatsapp_new.jpg" style="margin: 0px 3px -5px 5px;" alt="call back">+91 </span>
answered yesterday
Sarvesh TiwariSarvesh Tiwari
384322
384322
add a comment |
add a comment |
Place your image at below location
magento_rootappdesignfrontendVendorthemewebimages
Put below code into your .css
file
body
background: url('../images/brushed_alu.png')top center;
Put .css
file of your theme at below location
magento_rootappdesignfrontendVendorthemewebcssstyle.css(your
.css file)
After that run below commands from your root directory of Magento
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
add a comment |
Place your image at below location
magento_rootappdesignfrontendVendorthemewebimages
Put below code into your .css
file
body
background: url('../images/brushed_alu.png')top center;
Put .css
file of your theme at below location
magento_rootappdesignfrontendVendorthemewebcssstyle.css(your
.css file)
After that run below commands from your root directory of Magento
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
add a comment |
Place your image at below location
magento_rootappdesignfrontendVendorthemewebimages
Put below code into your .css
file
body
background: url('../images/brushed_alu.png')top center;
Put .css
file of your theme at below location
magento_rootappdesignfrontendVendorthemewebcssstyle.css(your
.css file)
After that run below commands from your root directory of Magento
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
Place your image at below location
magento_rootappdesignfrontendVendorthemewebimages
Put below code into your .css
file
body
background: url('../images/brushed_alu.png')top center;
Put .css
file of your theme at below location
magento_rootappdesignfrontendVendorthemewebcssstyle.css(your
.css file)
After that run below commands from your root directory of Magento
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
answered yesterday
ABHISHEK TRIPATHIABHISHEK TRIPATHI
1,9801726
1,9801726
add a comment |
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%2f267429%2fmagento-2-image-not-found%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
Did you run frontend deployment after adding image?
– Muhammad Anas
yesterday
can you check if image is there in
pub/static/frontend/Magento/luma/en_US/images
?– Muhammad Anas
yesterday
@MuhammadAnas no, but it's static
– Kirill Dudka
yesterday
1
You need to run static deploy command, it will create a copy of image in required directory
– Muhammad Anas
yesterday