Jump to content

Template Customization Set the icons in main navbar


Recommended Posts

Hello Folks.

 

I'm developing a custom theme for WHMCS v6 based on six template.

 

In six template example (https://github.com/WHMCS/templates-six) I found a variable to get the icon for the main navbar:

 

{if $item->hasIcon()}<i class="{$item->getIcon()}"></i> {/if}

 

How to define these Icons? I look in role template (and the config settings too) but I not found any reference to this icons. Or it will be necessary create a hook for ClientAreaPrimaryNavbar and set through this?

 

Best regards!

Link to comment
Share on other sites

How to define these Icons? I look in role template (and the config settings too) but I not found any reference to this icons. Or it will be necessary create a hook for ClientAreaPrimaryNavbar and set through this?

yes - using an action hook is the way to do it... an example hook to do this can be seen in the thread below...

 

http://forum.whmcs.com/showthread.php?107583-Hook-to-add-icons-to-primaryNavbar-for-six-template&p=441571#post441571

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated