Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   [SOLVED] Regarding restrictive page menus on several pages (http://forum.bytesforall.com/showthread.php?t=15442)

prathod Sep 20, 2011 12:56 PM

[SOLVED] Regarding restrictive page menus on several pages
 
Hello,

Thanks for a great Atahualpa theme.

I need some help..for a question below:

I have developed a web site. It has menus on menu bar, say 6 menus.
If I open a home or any other page on a website it shows all 6 menus.
Can I remove the visibility of some of the menus (say menu1,menu2, menu3) keeping 4,5,6 as it is on one page and remove the visibility of other menus (say menu4, menu5) keeping 1,2,3,5,6 as it is? After this, when I come back to Home page I should see all 6 menus as it is.

Thanks !

juggledad Sep 20, 2011 02:51 PM

You have confused me. A menu is made up of links to PAGES so you have
HTML Code:

home page1 page2 page3 page4 page5 page6
are you saying you originally want
HTML Code:

home page1 page2 page3 page4
but if someone clicks on page4 the will see
HTML Code:

home page4 page5 page6
and when they press home the will see
HTML Code:

home page1 page2 page3 page4
again?

If so, there is nothing in the theme that will do this currently, you might want to look for a plugin

prathod Sep 20, 2011 04:47 PM

Thanks juggledad,

Sorry for the confusion. Yes you are correct I want to exclude some pages from menu bar when user clicks on specific page.

i.e. if I have Home, page 1, page 2, page 3, page 4, page 5, page 6
If user clicks on page 3 then it should show: Home, page 1, page 3, page 4
and another case when user on page 5 it should be: Home, page 3, page 4, page 5, page 6

Something like that...I want to give stop displaying unnecessary pages to user.

Thanks !

juggledad Sep 20, 2011 04:58 PM

sure in your CSS Inserts add
HTML Code:

body.page-id-3 li.page-item-2,
body.page-id-3 li.page-item-2,
body.page-id-3 li.page-item-6 {
    display:none;
}
body.page-id-5 li.page-item-1,
body.page-id-5 li.page-item-2 {
    display:none;
}


prathod Sep 21, 2011 08:16 AM

Thanks juggledad for this excellent solution !

It worked perfect. :)

Thanks again !


All times are GMT -6. The time now is 03:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.