Jump to content
  • 0
hadlowj

adding categories to the header bar?

Question

How does one go about adding categories to the header bar it only say Home at the moment, I did manage to get one extra one on there but now no more will add, I removed it and tried to add it again but if does not show?

 

Thanks

James

Share this post


Link to post
Share on other sites

15 answers to this question

Recommended Posts

  • 0

I see in the back office, catalog > categories > New, add a new one, then if you mouse over Home on the front office its in the drop down but before i got it to show next to the Home.

Share this post


Link to post
Share on other sites
  • 0

hmmm now that is very weird. and you had the category before beside it? Make sure youre on the home page making the category and not the sub-page

 

When you are on home page and make the sub-category it should put it right beside it. I have no clue why its doing this I would recommend waiting till someone can help you more. Sorry I couldn't be of more help my friend.

 

Clayton

Edited by clayton29657

Share this post


Link to post
Share on other sites
  • 0

thats weird, because before I just installed a fresh prestshop, added the category and it showed next to it, then another and it showed, but the third did not nor the fourth, then deleted all the ones i had made and tried again bust this time none of them showed next to it. Any idea on what the module is called?

 

Thanks again

Share this post


Link to post
Share on other sites
  • 0

I've tried everything that this post says to do(and other posts also), but I can't get the 'Categories', 'Products', or 'About Us' drop-down menus to appear. This is how it's supposed to look....http://themes.withinpixels.com/autumn/. This is my site now.... http://www.popcultureheaven.com/. I've added 4 categories(see site map)...I need the 4 'Books' categories to appear under a 'Categories' drop-down menu on the home page. Thanks!

Share this post


Link to post
Share on other sites
  • 0

Hi tkmops,

 

override

modules/blocktopmenu/blocktopmenu.php

i.e. copy this file to

/themes/<your themefolder="">/modules/blocktopmenu/blocktopmenu.php</your>

then find the function getCategory()

at the end of this function, add a little code (red lines): at line number 647

if (count($children))

{

if ($category->level_depth <= 1) // 1 is level you still want to show

{

$this->_menu .= '<ul>';

 

foreach ($children as $child)

$this->getCategory((int)$child['id_category'], (int)$id_lang, (int)$child['id_shop']);

 

$this->_menu .= '</ul>';

}

}

$this->_menu .= '</li>';

 

 

This should do the trick.

 

Hope this helps,

Share this post


Link to post
Share on other sites

×