Question

On the website, home page header and footer showing but product page not showing header and footer part. How to fix it?

enter image description here

Was it helpful?

Solution

Please review this file in your custom theme, there may be some issues..

app/design/frontend/Vendor/Theme/Magento_Catalog/templates/product/list.phtml

Or try to rename this from list.phtml to list1.phtml and run below commands once

php bin/magento cache:clean
php bin/magento cache:flush

Hope this will help you!

OTHER TIPS

Please press CTRL + U in your keyboard and check view source of that page. There may be some error. That's why you're not getting header and footer there.

Hope this will help you to debug more! Thanks.

Please go to the path:

app/design/frontend/VENDOR/THEME/Magento_Catalog/layout/catalog_product_view.xml

or

app/design/frontend/VENDOR/THEME/Magento_Catalog/layout/default.xml

find code and remove after flush command :

<referenceContainer name="header.container" remove="true" />
<referenceContainer name="footer" remove="true" />
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top