Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Moving the Primary Menu

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 06-02-2015, 01:40 PM
 
andyo andyo is offline
 

Newbie
  
Join Date: Jan 2010
Posts: 4
 

Question Moving the Primary Menu

I'm just trying to move the primary menu from where it is to my own div at the very top of the page (in the code, not with a CSS bodge). I'm trying to get the logo, then the nav, then the search box all floated next to each other in the same div.

My theme/skin/module/whatever is a clone of the default one which I'm slowly going through and tweaking, so there's nothing really special about it (yet) and nothing is in any strange location file-wise.

I can edit the menu template itself but just can't see from the Webmaster tool which template calls that in and where.

As a WordPress theme builder and used to having everything a certain way, I'm finding this a nightmare in lots of ways. It's like a Russian Doll with templates inside templates! Can anybody point me in the right direction?

Cheers in advance.

&

v.5.2
Reply With Quote
  #2  
Old 06-03-2015, 04:07 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Moving the Primary Menu

Hello @andyo,

Did you have a look at this article:
http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes

What you need to do is to define a new view list in the template with your div, e.g.
Code:
<list name="name.of.your.view.list" />

and then assign the Primary menu widget to it as described here:
http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes#Step2-applyingdesignchanges-Addingnewtemplatesandwidgets

Please, let me know if it helps.

Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following user thanks tony_sologubov for this useful post:
andyo (06-03-2015)
  #3  
Old 06-03-2015, 06:56 AM
 
andyo andyo is offline
 

Newbie
  
Join Date: Jan 2010
Posts: 4
 

Default Re: Moving the Primary Menu

Quote:
Originally Posted by tony_sologubov
Hello @andyo,

Did you have a look at this article:
http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes

What you need to do is to define a new view list in the template with your div, e.g.
Code:
<list name="name.of.your.view.list" />

and then assign the Primary menu widget to it as described here:
http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes#Step2-applyingdesignchanges-Addingnewtemplatesandwidgets

Please, let me know if it helps.

Tony
Thanks, Tony.

Yes, had read that article but it seems to cover creating new templates. I just want to move the primary nav bar from one place to another. I wasn't expecting to have to create anything.

On a second look it looks like the Primary Menu is a special case. I can include other templates / widgets in the way I was wanting to, but trying with the menu crashes it. Is that a correct assumption?

I'm just going to write a static menu for now so the client can see it and figure it out later, but would appreciate any pointers.

&
Reply With Quote
  #4  
Old 06-08-2015, 11:53 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Moving the Primary Menu

Quote:
Originally Posted by andyo
On a second look it looks like the Primary Menu is a special case. I can include other templates / widgets in the way I was wanting to, but trying with the menu crashes it. Is that a correct assumption?

Could you please let me know how you tried to move Primary menu so it crashed the web-site? I will try to suggest a better way then.

Thank you.

Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:43 PM.

   

 
X-Cart forums © 2001-2020