Jump to content

E-shop logo is too small


radek.tuma@seznam.cz

Recommended Posts

 

I added to the file theme.css:
@media all and (min-width: 768px) {
  /* logo container */
  #header .col-md-2 {
    height: 162px;
    width: 414px;
  }
  /* logo image */
  #header .logo {
    width: 100%;
    height: auto;
  }
}

 

I don't think this is an elegant solution.

 

I suggest to go to /your_theme/templates/_partials/header.tpl

 

and replace the highlighted numbers:

 

{block name='header_top'}
  <div class="header-top">
    <div class="container">
       <div class="row">
        <div class="col-md-3 hidden-sm-down text-xs-left" id="_desktop_logo">
          <a href="{$urls.base_url}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
          </a>
        </div>
        <div class="col-md-9 col-sm-12 position-static">
          <div class="row">
            {hook h='displayTop'}
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
      <div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;">
        <div class="js-top-menu mobile" id="_mobile_top_menu"></div>
        <div class="js-top-menu-bottom">
          <div id="_mobile_currency_selector"></div>
          <div id="_mobile_language_selector"></div>
          <div id="_mobile_contact_link"></div>
        </div>
      </div>
    </div>
  </div>
  {hook h='displayNavFullWidth'}
{/block}
 

You can even try to set them to: 4 and 8.

 

 

 

Or you can center your logo into the middle and display menu below.

 

Here's the code:

 

{block name='header_top'}
  <div class="header-top">
    <div class="container">
       <div class="row">
        <div class="col-md-12 hidden-sm-down text-xs-center" id="_desktop_logo">
          <a href="{$urls.base_url}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
          </a>
        </div>
        <div class="col-md-12 col-sm-12 position-static">
          <div class="row">
            {hook h='displayTop'}
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
      <div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;">
        <div class="js-top-menu mobile" id="_mobile_top_menu"></div>
        <div class="js-top-menu-bottom">
          <div id="_mobile_currency_selector"></div>
          <div id="_mobile_language_selector"></div>
          <div id="_mobile_contact_link"></div>
        </div>
      </div>
    </div>
  </div>
  {hook h='displayNavFullWidth'}
{/block}

 

Clear the cache

Don't forget to clear the cache of your eshop after you save the changes. (Advanced parameters > performace > Icon at the top right "Clear Cache". Or simply turn off whole cache during the development - recommended).

  • Like 8
Link to comment
Share on other sites

 Hello Again :-)

 

I would like to move the search box (2) in order to align it with the logo and create a margin above the horizontal menu (1) as shown in the attached photo... any idea please

 

Thanks in advance

 

It's a great idea, I will work on it within the next 14 days and let you know here.

 

Right now I don't have an easy solution for that.

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

It's a great idea, I will work on it within the next 14 days and let you know here.

 

Right now I don't have an easy solution for that.

 

It's a great idea, I will work on it within the next 14 days and let you know here.

 

Right now I don't have an easy solution for that.

Hello Andrej

Did you find a way to align logo with search box... I would like to have more space for the top menu (As in the attached img) ... thanks for your support dear.

post-953079-0-92310600-1488187080_thumb.png

Link to comment
Share on other sites

  • 2 months later...

To display your logo on the left, the search bar on the right, the menu below

 

1. STEP

Go to your back office > Design tab > Positions

Find "displayTop" hook and set "Search bar" as the first module in this hook (before the main menu) (screenshot)

 

2. STEP

Go to:

/your_theme/modules/ps_mainmenu/ps_mainmenu.tpl

 

Add the red bold code and edit the orange bold code 

 

 

 

....
{/foreach}
</ul>
{/if}
{/function}

<div class="clearfix"></div>
</div>
</div>
<div class="col-md-12 col-sm-12 position-static">
<div class="row">


<div class="menu col-lg-12 col-md-12 js-top-menu position-static hidden-sm-down" id="_desktop_top_menu">
{menu nodes=$menu.children}
<div class="clearfix"></div>
</div>

 

 

3. STEP

Clear the cache of your eshop :) Enjoy! (screenshot with the result)

post-48475-0-28991700-1493806837_thumb.png

post-48475-0-00685800-1493806993_thumb.png

Link to comment
Share on other sites

  • 3 months later...

Hi!

 

just a bump for this topic.

 

I have tried above solutions, but unfortunately it doesnt works ( the code already was the same, i just move the "container" rule which was extra and not listed above)

 

My logo is still on the left.

Using 1.7.2.

 

any idea how to get logo in the middle and line out the search bar on the same height?

Or maybe even the logo in the middle with the horizontal top menu (with categories) left and right from it, and search bar on the right? 

( like this :    cat1   cat2  cat3 LOGO  cat4    cat5   cat6    SEARCH )

 

thanx!

Edited by loetje88 (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

It's a great idea, I will work on it within the next 14 days and let you know here.

 

Right now I don't have an easy solution for that.

 

hello i have tried to center logo following your instrucctions but didnt work out even when i delete cache...pls help

Link to comment
Share on other sites

  • 5 weeks later...

I don't think this is an elegant solution.

 

I suggest to go to /your_theme/templates/_partials/header.tpl

 

and replace the highlighted numbers:

 

{block name='header_top'}
  <div class="header-top">
    <div class="container">
       <div class="row">
        <div class="col-md-3 hidden-sm-down text-xs-left" id="_desktop_logo">
          <a href="{$urls.base_url}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
          </a>
        </div>
        <div class="col-md-9 col-sm-12 position-static">
          <div class="row">
            {hook h='displayTop'}
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
      <div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;">
        <div class="js-top-menu mobile" id="_mobile_top_menu"></div>
        <div class="js-top-menu-bottom">
          <div id="_mobile_currency_selector"></div>
          <div id="_mobile_language_selector"></div>
          <div id="_mobile_contact_link"></div>
        </div>
      </div>
    </div>
  </div>
  {hook h='displayNavFullWidth'}
{/block}
 

You can even try to set them to: 4 and 8.

 

 

 

Or you can center your logo into the middle and display menu below.

 

Here's the code:

 

{block name='header_top'}
  <div class="header-top">
    <div class="container">
       <div class="row">
        <div class="col-md-12 hidden-sm-down text-xs-center" id="_desktop_logo">
          <a href="{$urls.base_url}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
          </a>
        </div>
        <div class="col-md-12 col-sm-12 position-static">
          <div class="row">
            {hook h='displayTop'}
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
      <div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;">
        <div class="js-top-menu mobile" id="_mobile_top_menu"></div>
        <div class="js-top-menu-bottom">
          <div id="_mobile_currency_selector"></div>
          <div id="_mobile_language_selector"></div>
          <div id="_mobile_contact_link"></div>
        </div>
      </div>
    </div>
  </div>
  {hook h='displayNavFullWidth'}
{/block}

 

Clear the cache

Don't forget to clear the cache of your eshop after you save the changes. (Advanced parameters > performace > Icon at the top right "Clear Cache". Or simply turn off whole cache during the development - recommended).

 

You are a true legend, sir. The centered logo on top of the menu is so beautiful. Thank you so much.

Link to comment
Share on other sites

  • 2 months later...
En 1/23/2017 a las 1:32 PM, Andrej Stas dijo:

I don't think this is an elegant solution.

 

I suggest to go to /your_theme/templates/_partials/header.tpl

 

and replace the highlighted numbers:

 

{block name='header_top'}
  <div class="header-top">
    <div class="container">
       <div class="row">
        <div class="col-md-3 hidden-sm-down text-xs-left" id="_desktop_logo">
          <a href="{$urls.base_url}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
          </a>
        </div>
        <div class="col-md-9 col-sm-12 position-static">
          <div class="row">
            {hook h='displayTop'}
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
      <div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;">
        <div class="js-top-menu mobile" id="_mobile_top_menu"></div>
        <div class="js-top-menu-bottom">
          <div id="_mobile_currency_selector"></div>
          <div id="_mobile_language_selector"></div>
          <div id="_mobile_contact_link"></div>
        </div>
      </div>
    </div>
  </div>
  {hook h='displayNavFullWidth'}
{/block}
 

You can even try to set them to: 4 and 8.

 

 

 

Or you can center your logo into the middle and display menu below.

 

Here's the code:

 

{block name='header_top'}
  <div class="header-top">
    <div class="container">
       <div class="row">
        <div class="col-md-12 hidden-sm-down text-xs-center" id="_desktop_logo">
          <a href="{$urls.base_url}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
          </a>
        </div>
        <div class="col-md-12 col-sm-12 position-static">
          <div class="row">
            {hook h='displayTop'}
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
      <div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;">
        <div class="js-top-menu mobile" id="_mobile_top_menu"></div>
        <div class="js-top-menu-bottom">
          <div id="_mobile_currency_selector"></div>
          <div id="_mobile_language_selector"></div>
          <div id="_mobile_contact_link"></div>
        </div>
      </div>
    </div>
  </div>
  {hook h='displayNavFullWidth'}
{/block}

 

Clear the cache

Don't forget to clear the cache of your eshop after you save the changes. (Advanced parameters > performace > Icon at the top right "Clear Cache". Or simply turn off whole cache during the development - recommended).

Thanks for your help, I wanted center the logo and with your code it is perfect for PC versión, but I have a little problem in mobile version the logo is not centered .

Can you help me to center logo in mobile version?

 

Thanks

Link to comment
Share on other sites

  • 4 weeks later...
On 03/05/2017 at 7:27 AM, Andrej Stas said:

To display your logo on the left, the search bar on the right, the menu below

 

1. STEP

Go to your back office > Design tab > Positions

Find "displayTop" hook and set "Search bar" as the first module in this hook (before the main menu) (screenshot)

 

2. STEP

Go to:

/your_theme/modules/ps_mainmenu/ps_mainmenu.tpl

 

Add the red bold code and edit the orange bold code 

 

 

 

....
{/foreach}
</ul>
{/if}
{/function}

<div class="clearfix"></div>
</div>
</div>
<div class="col-md-12 col-sm-12 position-static">
<div class="row">


<div class="menu col-lg-12 col-md-12 js-top-menu position-static hidden-sm-down" id="_desktop_top_menu">
{menu nodes=$menu.children}
<div class="clearfix"></div>
</div>

 

 

3. STEP

Clear the cache of your eshop :) Enjoy! (screenshot with the result)

post-48475-0-28991700-1493806837_thumb.png

post-48475-0-00685800-1493806993_thumb.png

 

Hi Friend

 

I tried make this modification. but dont work for me 

Can you help me? I need put mainmenu below logo picture.

 

My website: www.dhframes.com.br/loja 

 

 

 

Link to comment
Share on other sites

En 23/1/2017 a las 2:32 PM, Andrej Stas dijo:

I don't think this is an elegant solution.

 

I suggest to go to /your_theme/templates/_partials/header.tpl

 

and replace the highlighted numbers:

 

{block name='header_top'}
  <div class="header-top">
    <div class="container">
       <div class="row">
        <div class="col-md-3 hidden-sm-down text-xs-left" id="_desktop_logo">
          <a href="{$urls.base_url}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
          </a>
        </div>
        <div class="col-md-9 col-sm-12 position-static">
          <div class="row">
            {hook h='displayTop'}
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
      <div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;">
        <div class="js-top-menu mobile" id="_mobile_top_menu"></div>
        <div class="js-top-menu-bottom">
          <div id="_mobile_currency_selector"></div>
          <div id="_mobile_language_selector"></div>
          <div id="_mobile_contact_link"></div>
        </div>
      </div>
    </div>
  </div>
  {hook h='displayNavFullWidth'}
{/block}
 

You can even try to set them to: 4 and 8.

 

 

 

Or you can center your logo into the middle and display menu below.

 

Here's the code:

 

{block name='header_top'}
  <div class="header-top">
    <div class="container">
       <div class="row">
        <div class="col-md-12 hidden-sm-down text-xs-center" id="_desktop_logo">
          <a href="{$urls.base_url}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
          </a>
        </div>
        <div class="col-md-12 col-sm-12 position-static">
          <div class="row">
            {hook h='displayTop'}
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
      <div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;">
        <div class="js-top-menu mobile" id="_mobile_top_menu"></div>
        <div class="js-top-menu-bottom">
          <div id="_mobile_currency_selector"></div>
          <div id="_mobile_language_selector"></div>
          <div id="_mobile_contact_link"></div>
        </div>
      </div>
    </div>
  </div>
  {hook h='displayNavFullWidth'}
{/block}

 

Clear the cache

Don't forget to clear the cache of your eshop after you save the changes. (Advanced parameters > performace > Icon at the top right "Clear Cache". Or simply turn off whole cache during the development - recommended).

Hi,

I used your method to center the logo, and now it is working without problems, but when go to checkout the logo go to the left and now it is very small.

I have tryed solved it with the file themes/classic/templates/checkout/_partials/header.tpl, I have modified these lines

                    <div class="col-md-12 hidden-sm-down text-xs-center" id="_desktop_logo">

                   Now the logo is center, but it is very small, what can I Do to have the same size of logo of previus page

Thanks

 

 

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

  • 2 weeks later...
  • 7 months later...

{block name='header_nav'}
  <nav class="header-nav">
    <div class="container">

          <div class="hidden-lg-up text-xs-center mobile"> 
            <button class="btn canvas-menu float-xs-left" data-toggle="offcanvas" type="button"><span class="material-icons">dehaze</span>
            </button> 
          </div>
          <div class="float-xs-left">
            {hook h='displayNav1'}
          </div>
          {if class_exists('PtsthemePanel')}
            <div class="float-xs-right">
              {plugin module='ps_searchbar' hook='displayTop'}
            </div>    
          {/if}
          <div class="float-xs-right right-nav">
              {hook h='displayNav2'}
          </div>
    </div>
  </nav>
{/block}
{block name='header_top'}
  <div class="header-top">
    <div class="container">
      <div class="float-xs-left">
        <div class="{if Configuration::get('PTS_CP_LOGOTYPE') == 'logo-theme'}logo-theme{else}logo-store{/if}">
          <a href="{$urls.base_url}" title="{$shop.name}">
            <img class="logo img-responsive" src="{$shop.logo}" {if Configuration::get('PTS_CP_LOGOTYPE') == 'logo-theme'}hidden{/if} alt="{$shop.name}">
          </a>
        </div>
      </div>
      <div class="position-static float-xs-right">
          {hook h='displayTop'}
          <div class="clearfix"></div>
      </div>
        <div id="_desktop_menu" class="ps-desktop-megamenu">
            {hook h="displayMainmenu"}
        </div> 
    </div>
  </div> 
  {hook h='displayNavFullWidth'}
{/block}
 

 

 

how i change logo and search bar option?

 

Link to comment
Share on other sites

  • 4 weeks later...

When I change the file nothing happens.  I check the source and nothing has changed.  I cleared cache and rebooted my server no change.  I did the CSS width change and that takes effect.  What in the world is going on?

*edit*
Had to change the template recompile options in performance options.

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

  • 4 months later...
  • 3 weeks later...
En 23/1/2017 a las 2:32 PM, Andrej Stas dijo:

I don't think this is an elegant solution.

 

I suggest to go to /your_theme/templates/_partials/header.tpl

 

and replace the highlighted numbers:

 

{block name='header_top'}
  <div class="header-top">
    <div class="container">
       <div class="row">
        <div class="col-md-3 hidden-sm-down text-xs-left" id="_desktop_logo">
          <a href="{$urls.base_url}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
          </a>
        </div>
        <div class="col-md-9 col-sm-12 position-static">
          <div class="row">
            {hook h='displayTop'}
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
      <div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;">
        <div class="js-top-menu mobile" id="_mobile_top_menu"></div>
        <div class="js-top-menu-bottom">
          <div id="_mobile_currency_selector"></div>
          <div id="_mobile_language_selector"></div>
          <div id="_mobile_contact_link"></div>
        </div>
      </div>
    </div>
  </div>
  {hook h='displayNavFullWidth'}
{/block}
 

You can even try to set them to: 4 and 8.

 

 

 

Or you can center your logo into the middle and display menu below.

 

Here's the code:

 

{block name='header_top'}
  <div class="header-top">
    <div class="container">
       <div class="row">
        <div class="col-md-12 hidden-sm-down text-xs-center" id="_desktop_logo">
          <a href="{$urls.base_url}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
          </a>
        </div>
        <div class="col-md-12 col-sm-12 position-static">
          <div class="row">
            {hook h='displayTop'}
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
      <div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;">
        <div class="js-top-menu mobile" id="_mobile_top_menu"></div>
        <div class="js-top-menu-bottom">
          <div id="_mobile_currency_selector"></div>
          <div id="_mobile_language_selector"></div>
          <div id="_mobile_contact_link"></div>
        </div>
      </div>
    </div>
  </div>
  {hook h='displayNavFullWidth'}
{/block}

 

Clear the cache

Don't forget to clear the cache of your eshop after you save the changes. (Advanced parameters > performace > Icon at the top right "Clear Cache". Or simply turn off whole cache during the development - recommended).

Thank you.

Link to comment
Share on other sites

  • 6 months later...
On 1/23/2017 at 9:32 PM, Andrej Stas said:

I don't think this is an elegant solution.

 

I suggest to go to /your_theme/templates/_partials/header.tpl

 

and replace the highlighted numbers:

 

{block name='header_top'}
  <div class="header-top">
    <div class="container">
       <div class="row">
        <div class="col-md-3 hidden-sm-down text-xs-left" id="_desktop_logo">
          <a href="{$urls.base_url}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
          </a>
        </div>
        <div class="col-md-9 col-sm-12 position-static">
          <div class="row">
            {hook h='displayTop'}
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
      <div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;">
        <div class="js-top-menu mobile" id="_mobile_top_menu"></div>
        <div class="js-top-menu-bottom">
          <div id="_mobile_currency_selector"></div>
          <div id="_mobile_language_selector"></div>
          <div id="_mobile_contact_link"></div>
        </div>
      </div>
    </div>
  </div>
  {hook h='displayNavFullWidth'}
{/block}
 

You can even try to set them to: 4 and 8.

 

 

 

Or you can center your logo into the middle and display menu below.

 

Here's the code:

 

{block name='header_top'}
  <div class="header-top">
    <div class="container">
       <div class="row">
        <div class="col-md-12 hidden-sm-down text-xs-center" id="_desktop_logo">
          <a href="{$urls.base_url}">
            <img class="logo img-responsive" src="{$shop.logo}" alt="{$shop.name}">
          </a>
        </div>
        <div class="col-md-12 col-sm-12 position-static">
          <div class="row">
            {hook h='displayTop'}
            <div class="clearfix"></div>
          </div>
        </div>
      </div>
      <div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;">
        <div class="js-top-menu mobile" id="_mobile_top_menu"></div>
        <div class="js-top-menu-bottom">
          <div id="_mobile_currency_selector"></div>
          <div id="_mobile_language_selector"></div>
          <div id="_mobile_contact_link"></div>
        </div>
      </div>
    </div>
  </div>
  {hook h='displayNavFullWidth'}
{/block}

 

Clear the cache

Don't forget to clear the cache of your eshop after you save the changes. (Advanced parameters > performace > Icon at the top right "Clear Cache". Or simply turn off whole cache during the development - recommended).

Hi Guys, I need some help here. 

 

I followed and changed the values to 3,9 or 4,8 however both doesnt work well for me, the image attached is when i set values to 3,9. Is there any solutions for it? Thank you. 

unable to align search bar.jpeg

Link to comment
Share on other sites

  • 2 years later...

Hi there,

Can anyone please point me in the direction as to where to change CSS so that my logo aligns on top on the desktop site?

(if I align the logo image to the top, then the name on the logo, and the menu would be visualy aligned, which is what I am aiming at with this...)

I am using PS 1.7.8 and the default theme, I know where the CSS is, but I see too many "logo" on css to know which one to change (and how)... something as a valign="top" maybe? (but where?)

Thank you so much!

Ana

logo align.jpg

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...