Jump to content

Prestashop 1.7.4.2 - Logo has no margin on index page in responsive mode?


Recommended Posts

Hi!

I have just updated my Prestashop version from 1.7.3.3 to 1.7.4.2 and everything is working fines as I can see it.

But, the logo has no margin on top in responsive mode (only on the index page), because it is surrounded with h1-tags, why is that? The same problem in the demo on Prestashop.com.

I have attached two screenshots.

Thanks in advance.

Best regards,

index.png

other-pages.png

Edited by Jontee (see edit history)
Link to comment
Share on other sites

This is the code in the header template file:

            {if $page.page_name == 'index'}
              <h1>
                <a href="{$urls.base_url}">
                  <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
                </a>
              </h1>
            {else}
                <a href="{$urls.base_url}">
                  <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
                </a>
            {/if}

I guess the h1-tag is there for SEO purpose on the index page? Unfortunately it makes the logo placement weird in responsive mode, as you can see on the screenshots. Any solution to this?

Best regards,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...