Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Rui Maciel
How to hide the white navigation bar
August 31, 2012 6:45 PM
Answer

Rui Maciel

Rank: Junior Member

Posts: 36

Join Date: July 23, 2012

Recent Posts

Hi all, I wonder how to hide the white navigation bar?
Can somebody please help me?

Thanks in advanced
Rewati Raman
RE: How to hide the white navigation bar
August 31, 2012 11:48 PM
Answer

Rewati Raman

Rank: Junior Member

Posts: 97

Join Date: February 24, 2012

Recent Posts

Hi Rui,

The white navigation is actually known as breadcrumbs
just comment the below code in portal_normal.vm in theme or
in custom.css of theme just write
#breadcrumbs{
display:none;
}

comment using #*...*#
 1
 2#*
 3<nav class="site-breadcrumbs" id="breadcrumbs">
 4            <h1>
 5                <span>#language("breadcrumbs")</span>
 6            </h1>
 7
 8            #breadcrumbs()
 9        </nav>
10*#


Regards,
Rewati Raman
Sagar A Vyas
RE: How to hide the white navigation bar
September 1, 2012 2:58 AM
Answer

Sagar A Vyas

Rank: Liferay Master

Posts: 655

Join Date: April 17, 2009

Recent Posts

Rui Maciel:
Hi all, I wonder how to hide the white navigation bar?
Can somebody please help me?

Thanks in advanced



Remove following content from you _diff/templates/portal_normal.vm file

1
2<nav class="site-breadcrumbs" id="breadcrumbs">
3            <h1>
4                <span>#language("breadcrumbs")</span>
5            </h1>
6
7            #breadcrumbs()
8        </nav>



Thanks,
Sagar Vyas
Hitoshi Ozawa
RE: How to hide the white navigation bar
September 1, 2012 3:48 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

For additional information, modifying portal_normal.vm would stop codes to generate breadcrumb while setting css would only stop the breadcrumb from being displayed by default. CSS can be specified in each page from Look and Feel so it can be displayed back again.
Rui Maciel
RE: How to hide the white navigation bar
September 1, 2012 11:27 AM
Answer

Rui Maciel

Rank: Junior Member

Posts: 36

Join Date: July 23, 2012

Recent Posts

Thanks guys! You're the best emoticon
Rewati Raman
RE: How to hide the white navigation bar
September 2, 2012 8:30 PM
Answer

Rewati Raman

Rank: Junior Member

Posts: 97

Join Date: February 24, 2012

Recent Posts

Hi Hitoshi,

I agree with your comment and I always follow the CSS way....

Regards,
Rewati Raman
Sagar A Vyas
RE: How to hide the white navigation bar
December 10, 2012 3:06 AM
Answer

Sagar A Vyas

Rank: Liferay Master

Posts: 655

Join Date: April 17, 2009

Recent Posts

Sri Sri:
Is there any way to remove this white navigation bar for only the users of the application , not for admin????



You might use following condition in your theme


#if ($permissionChecker.isOmniadmin())

#end


Thanks,
Sagar Vyas