Barcelona, using just top bar menu without side menu

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
hasantolak
Posts: 16
Joined: 05 Dec 2018, 16:38

25 Apr 2019, 12:26

Hi,

I hope you are well.
Currently I am using Barcelona theme.
All things are fine for a full usage of the theme.
When I use layout for a mobile without side menu, top menu does not work ; top menu items does not expanding.
I think the reason, the side menu do activation or loading necessary JavaScript.

Thanks for your help.

Hasan

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

25 Apr 2019, 16:30

I think the reason, the side menu do activation or loading necessary JavaScript.
- You're right ;) You need to create a new js file for your issue, then add js codes related to topbar into the new js file.

But, I recommend hiding the sidebar using CSS. Please try;

Code: Select all

body .layout-wrapper .layout-sidebar {
   display: none !important;
}

body .layout-wrapper .layout-main {
   margin-left: 0;
}
Best Regards,

hasantolak
Posts: 16
Joined: 05 Dec 2018, 16:38

25 Apr 2019, 17:02

Thanks for your response.

It solved the problem.
Just I add empty <pa:tabMenu />component to side menu.
It is working very well.

Best regards.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

26 Apr 2019, 08:59

Glad to hear, thanks a lot for the update!

Post Reply

Return to “Barcelona - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests