Jump to content
007basaran

WHMCS Secondary Navbar - Same Characters - How to delete ?

Recommended Posts

Hello, 

Previously thanks for everyone for helps.

A little problem for developers control in 1 minute fix.

Problem whmcs in secondary same characters...

Please check image :  prntscr.com/gwidms

How to delete ------ ?

Regards.

Share this post


Link to post
Share on other sites

it's the same as deleting any other menu child, you just have to find it's name (menuitemname) and add it to your hook...

https://docs.whmcs.com/Client_Area_Navigation_Menus_Cheatsheet

but it should be along the lines of...

<?php

/**
* Remove Secondary Navbar Divider
* @author brian!
*/

use WHMCS\View\Menu\Item as MenuItem;

add_hook('ClientAreaSecondaryNavbar', 1, function (MenuItem $secondaryNavbar)
{
   if (!is_null($secondaryNavbar->getChild('Account'))) {
                   $secondaryNavbar->getChild('Account')
                               ->removeChild('Divider');
   }
});

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines