Define pages for mainmenu

Support help forum dedicated to free and commerical templates for Joomla 3 and 2.5 version.
GK User
Sun May 05, 2013 7:30 pm
Hi guys I need your help.

I need to define which menu publish in mainmenu position for each page of my website.
Usually mainmenu is a module position, but I see you use a different way.

For example, in my landing page, i need to remove the menu completely and in my blog i need to publish the BLOG menu instead of the default one.

Can you help me?

Thank you

PS: Awesome theme!
User avatar
Expert Boarder

GK User
Mon May 06, 2013 3:08 am
Which template are you using ?
User avatar
Platinum Boarder

GK User
Sat May 11, 2013 8:22 pm
I'm using startup. It is awesome :)
User avatar
Expert Boarder

GK User
Sun May 12, 2013 8:22 am
The way I see it following is what you can do to achieve this without editing template files.

Step A: To hide main menu completely in landing page give it a pagesuffix and hide that mainmenu block with a css.

1. Add your landing page to any menu so you can get menu item id.
2. Check menu item id which is at the end of the menu line.
3. Go to template Settings > Features > Suffixes for pages>
4. For "ItemID/Option" enter your menu item id in from step 1.
5. For "Suffix" enter " nomenu" without quotes and empty space in front.
6. Click on add rule and you will see a new line under which looks similar to "ItemID 101 nomenu".
7. Enable css override option in tempale settings > advanced settings > css override "on".
8. Enter following css code in to css/override.css file.
Code: Select all
.nomenu #gkMainMenu {display: none;}

9. Now when you cruise to your landing page css should hide the main menu.

Step B: Publishing Blog menu in Blog pages rather then main menu. As we can choose which menu to display in template settings so we just need to copy our template style and select blog menu in second style, assign it to our blog menu.

I am assuming you already have a menu name called "Blog" created and ready to use.
I am assuming you already have a menu item called "Blog" in your main menu created and ready to use.

1. Go to joomla admin > template manager.
2. Tick the box next to "gk_storebox - Default" and click on dublicate in top right menu.
3. Now you should see "gk_storebox - Default2". Click on it to edit settings.
4. In template settings > Style name enter "gk_storebox - Blog".
5. In template settings > Menu > Choose menu, select your blog menu.
6. In template settings > Menu Assignments ( bottom left ) select your menu item for your blog.
7. Now when ever you click on your blog menu in front end this style will take over and will display your blog menu or what ever other changes you make in this style.

See you around...
User avatar
Platinum Boarder

GK User
Fri Jun 07, 2013 11:54 am
Step A doesn't work.

I have added the rule:
ItemID 525 - nomenu

and the id is right
http://www.futuraimmagine.com/index.php ... cle&id=525
http://www.futuraimmagine.com/preventivo-sito-web.html

are the same (i use sh404)

I have added the line in css
Code: Select all
.nomenu #gkMainMenu {display: none;}


And the css override are on.

But the menu is still visible.

Any idea?

Thank you!
User avatar
Expert Boarder

GK User
Mon Jun 10, 2013 10:50 am
I cannot see "nomenu" suffix in your page source so either you have done it wrong or there is another problem that is why it is not hiding the menu.

Test it by disabling sh404 and check page source and you should see your suffix in body class, if you can't then redo adding nomenu suffix in template settings with an empty space in front of " nomenu".

Alternatively send me an email with an admin access and I ll check it out. normanuk[at]live.co.uk

Please include this topic link in your email.

See you around...
User avatar
Platinum Boarder

GK User
Sun Jun 16, 2013 8:24 pm
Thank you very much, that's my fault. I have used the article id, not the item id.

Now everything is fine.
User avatar
Expert Boarder

GK User
Sun Jun 16, 2013 9:44 pm
No problem at all, see you around : )
User avatar
Platinum Boarder


cron