Different menu on different pages

CreaWeb
Tourist
7 0 4

Hello,

i know there are similar requests, but none is really answered besides reaching out to an expert.

In our shop basically we want 2 landing pages, one for normal customers and one for wholesale. Each one should have a different menu in the header, because the pages listed in them are specific to B2C or B2B.

Is this possible in any way? I thought maybe if else statement which reacts to the current page and uses a different link list, but i'm not that good with linklists and so on so a little detailed solution would be really awesome.

Thank you very much in advance!

Replies 7 (7)

KetanKumar
Shopify Partner
36845 3636 11969

@CreaWeb 

Welcome to the Shopify community!
and Thanks for your Good question.

Please share your site URL,
So I will check and provide a solution here.

 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
CreaWeb
Tourist
7 0 4

the url is hemprider.store

Ninthony
Shopify Partner
2330 350 1024

It's possible to do two different landing pages, but it would all have to be hard coded in and not through your customize editor. The linklist solution is completely doable though.

You can use customer tags to identify who is a wholesale customer and who isnt. You'd go into wherever your navigation is included, probably the header, and just make a conditional statement around it

{% if customer.tags contains "wholesale" %}
  {% assign menu = 'wholesale-menu' %}
{% else %}
  {% assign menu = 'normal-menu' %}
{% endif %}

{% for link in linklists[menu].links %}
  //code to output your menu items.
{% endfor %}
If my solution helped you, please like it and accept it as the solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish 😄
thepoe09
Tourist
7 0 6

Hi,

I would also like some help with this. I would like to be able to either remove my navigation header or replace it on certain pages within my site. 

 

Is this possible?

 

Thanks

BB_Tech
Excursionist
106 1 6

What would the code in '//code to output your menu items' look like, I have been looking at this problem for a few days now and I cant figure it out 

KetanKumar
Shopify Partner
36845 3636 11969

@BB_Tech 

it can be done some customization code

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing

gr_trading
Shopify Partner
1693 141 176

Hi @CreaWeb ,

 

Posting to help others in implementing the same.

Please follow the instruction provided in the below video to implement the same.

 

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee