kkomaz
kkomaz

Reputation: 261

Footer Issue - Local and header differ only on one page

I am a having a footer issue where my production on one page doesn't match the rest of the content of the website. When I run it locally it looks fine but on production this page is the only page that is being wrapped by a div wrapper. For example

Locally:

enter image description here enter image description here

On Production: enter image description here enter image description here

I checked the HTML (locally) to see if I was wrapping the wrong way but I just don't see it. All the other pages on the site are not wrapped in this way. Could there be something with the asset pipeline that could be causing this difference between local vs production?

Upvotes: 0

Views: 47

Answers (1)

zgood
zgood

Reputation: 12581

This issue was being caused because one of the <div>'s was missing a closing tag and elements weren't being wrapped properly in the production environment.

You can use the W3C validation service to validate your markup to try and catch any invalid markup.

Upvotes: 1

Related Questions