Question

I'm wanting to edit my 404 static page content and simply add a background image across the whole viewable pane.

Is there a way to do with in M2.1 ?

Was it helpful?

Solution

You can add the background image by

  1. Go to admin ->CMS -> Pages -> 404 Not Found -> Content -> Click Show / Hide editor (Make sure it is html view)

Add a <div> to starting and close </div> at the end of the content. Insert image by clicking insert image...Then you get something like this <img src="{{media url="wysiwyg/24.png"}}" alt="" />. Take this {{media url="wysiwyg/24.png"}} only.

Then you can use it as i added.

    <div style="background-image: url('{{media url='wysiwyg/7.png'}}');">
       // No route cms content
    </div>

No No @ krishna, i am asking across the whole viewable pane.

Grab the unique calss from 404/No-route page. In my case the class is cms-no-route

Create a style-sheet and add your styles there.

.cms-no-route{
background-image: url("Myiamge.png");
}
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top