Jump to content

Set Top Navigation Bar, Categories & Store Information Opened by Default on Mobile Site


Recommended Posts

Hi guys,

 

I would like to set the categories & store information opened by default on the mobile site. Anybody knows how to configure it?

 

Any help is much appreciated. Thank you so much  :)

 

Attached the mobile site screen shot.

 

* Prestashop 1.6.0.9

* Default-Bootstrap

post-839725-0-12059600-1440816626_thumb.png

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

If I understand your question correctly, you want the categories button not to show and the buttons that show when categories button is clicked to show instead.

Try going to themes -> default-bootstrap ->modules->blocktopmenu->blocktopmenu.tpl and commenting out the line

<div> class="cat-title"></div>

Then in superfish-modified.css comment out display:none under .sf-menu

 

Works using the inspect element in the browser; didn't make an actual demo of it.  So there may be unintended consequences on some pages, e.g, in the cart or somewhere downstream.  You'll have to test drive it.

Link to comment
Share on other sites

If I understand your question correctly, you want the categories button not to show and the buttons that show when categories button is clicked to show instead.

Try going to themes -> default-bootstrap ->modules->blocktopmenu->blocktopmenu.tpl and commenting out the line

<div> class="cat-title"></div>

Then in superfish-modified.css comment out display:none under .sf-menu

 

Works using the inspect element in the browser; didn't make an actual demo of it.  So there may be unintended consequences on some pages, e.g, in the cart or somewhere downstream.  You'll have to test drive it.

 

Thanks, mate. Gonna try within this week. Will let you know if it's worked.

Link to comment
Share on other sites

  • 3 weeks later...
  • 5 months later...

Looks like it doesn't work. These are the changes made based on mikewra to comment out some of the codes:

 

/themes/default-bootstrap/modules/blocktopmenu/blocktopmenu.tpl

    <div id="block_top_menu" class="sf-contener clearfix col-lg-12">
<!--        <div class="cat-title">{l s="Categories" mod="blocktopmenu"}</div> -->

/themes/default-bootstrap/css/modules/blocktopmenu/css/superfish-modified.css

.sf-menu {
  position: relative;
  padding: 0;
  width: 100%;
  border-bottom: 3px solid #e9e9e9;
  background: #f6f6f6; }
  @media (max-width: 767px) {
    .sf-menu {
/*      display: none; } */}

Any helps, presta forum?

Link to comment
Share on other sites

for me it works well,

superfish-modified.css line ~19

remove display:none;

it opens menu only for "first level" categories inside the menu.

 

Hi Milos,

 

I deleted already but still the same as the attachment I uploaded up there.

 

You can check from your mobile: this website

Link to comment
Share on other sites

wow, you use some different module there

it's some unknow #adtm_menu ?

 

Really sorry, for the top menu I am not using the standard prestashop module (PM Advanced Top Menu), but for categories & store information on the bottom part, those are standard prestashop modules.

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

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

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