How do I get rid of extra space at the top of the product page!

Topic summary

A user encountered unwanted extra space at the top of their product pages on their Moroccan Plus store.

A support team member requested access to the site and provided a CSS-based solution:

  • Navigate to the theme’s base.css or theme.css file
  • Add custom CSS code targeting mobile screens (max-width: 600px) to adjust .product-template .page-container margin-top and .site-header top positioning

Issue: The CSS fix successfully removed the space from product pages but unintentionally affected the homepage, displacing the logo from its original position.

Status: The discussion remains open with the user requesting a revised solution that fixes the product page spacing without impacting the homepage layout.

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

How do I get rid of this extra space right here?

1 Like

Hello @omar_ab .
Our team is ready to help you.
Please share your website address and access password (if necessary) so that we can check and assist you.

MoroccanPlus.com

  • Here is the solution for you @omar_ab
  • Please follow these steps:

  • Then find the base.css or theme.css file.
  • Then add the following code at the end of the file and press ‘Save’ to save it.
@media only screen and (max-width: 600px) {
.template-product .page-container {
    margin-top: 77px !important;
}
.site-header {
 top: 0 !important;
}
}
  • Here is the result you will achieve:

  • Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.
1 Like

It affected the home page! Can we get the logo back to where it was?