Dropdown Menu only appear when logged in

ThemeBurn SupportForumsOpenCart ThemesPavilion OpenCart ThemeDropdown Menu only appear when logged in

This topic has been marked as resolved.

I have a multimerch module.

In default, when logged in, MM has lots of menus in the dropdown.

I also want to add those in pavilion

It is possible to add menus on header and will only appear when logged in?

 pipoy
July 28, 2017 at 4:49 pm #60668

Hi,

There are helper classes to show/hide menus based on whether the user is logged or not.

/* Add this class to menus you want to be hidden when the user is logged in */

tb_menu_system_account_login

/* Add this class to menus you want to be visible when the user is logged in */

tb_menu_system_account_logout

http://i.imgur.com/hEIwZhA.png

BR,
ThemeBurn team

August 7, 2017 at 3:08 pm #60849

This is working.
I would also like to make a divider with a label. Just line in multimerch attached

But when I put divider as Menu Item, it is just an empty space

 pipoy
August 7, 2017 at 7:43 pm #60877

I manage to do it by putting header. But I have 2 more queries.

1. I want to make it bold
2. The header does not disappear when logged out even when I put the classes

Attached

 pipoy
August 7, 2017 at 8:47 pm #60878

Will the support ever coming back?

 pipoy
August 16, 2017 at 3:44 am #61002

Hi,

1) Menu block in Page Builder has typography options that can control font weight:

http://i.imgur.com/xrdj6Xt.png

2) You need to add this extra code to fix the menu header that does not disappear:

body.is_logged .tb_menu_system_account_login,
body:not(.is_logged) .tb_menu_system_account_logout,
body.is_affiliate_logged .tb_menu_system_affiliate_login,
body:not(.is_affiliate_logged) .tb_menu_system_affiliate_logout
{
  display: none !important;
}

Add these styles from the Theme CP > Theme Settings > Custom > Custom Stylesheet text field.

BR,
ThemeBurn team

August 16, 2017 at 3:52 pm #61012
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.