On Tue, Feb 4, 2014 at 2:13 PM, Graham Hays
wrote:
> It would depend on why you want to not display a link .. with PHP the link
> is never displayed but with CSS it will still be displayed if the user turns
> off CSS, if the link is not essential then go with CSS. I usually still
> display the lin
I prefer to have the full navigation on all pages; if some links aren't
relevant to the current context, they can be 'removed' with CSS.
Additionally, especially with CMS's, caching of menu's is typical. If you
did this with server side code, you would have to have a separate cache for
each menu
On Tue, Feb 4, 2014 at 1:31 PM, Colin (Sandy) Pittendrigh
wrote:
> The original poster indicated he is generating his pages with PHP. Others
> since have shown how the home link could be hidden on the home page only
> using CSS rather than PHP. But the same result *could* be accomplished with
> s
The original poster indicated he is generating his pages with PHP. Others
since have shown how the home link could be hidden on the home page only
using CSS rather than PHP. But the same result *could* be accomplished with
server-side PHP logic. So perhaps the interesting question is "Which avenue
On Tue, Feb 4, 2014 at 1:10 PM, John Johnson wrote:
> I apologize if this turns out to be more a PHP question, but is there a way
> to eclude a particular nav link on particular pages?
>
> the specific: prevent the Home page from having a text/nav element “Home”
> while the “Home” nav elements w
Typically this is done with a class or id applies to a high level element,
such as . Then, within your css, you can have:
.home .nav .home-link {
display: none;
visibility: hidden;
}
On Tue, Feb 4, 2014 at 1:10 PM, John Johnson wrote:
> I apologize if this turns out to be more a PHP quest
I apologize if this turns out to be more a PHP question, but is there a way to
eclude a particular nav link on particular pages?
the specific: prevent the Home page from having a text/nav element “Home” while
the “Home” nav elements would be visible on all other pages.
Thank you,
John