Jump to content
chaphugnes1321

How To Edit The PHP Files

Recommended Posts

I have been able to change the CSS design and some of the HTML of the "Six" theme.

But now I have only one last task to complete which is to change the navbar links. I found this article https://developers.whmcs.com/themes/navigation/   on about how to change the links but it doesn't explain how to get to the PHP files. So my question is: 

How can I get to those PHP files via FTP so I can follow the article?

Thank you.

Share this post


Link to post
Share on other sites

The files referenced do not yet exist until you create them. This is part of the hook system, you will want to read more about this here: https://developers.whmcs.com/hooks/

You simply need to create the necessary hook files with the content you learned from reading the Navigation documentation in order to modify the links.

Share this post


Link to post
Share on other sites
17 hours ago, chaphugnes1321 said:

But now I have only one last task to complete which is to change the navbar links. I found this article https://developers.whmcs.com/themes/navigation/   on about how to change the links but it doesn't explain how to get to the PHP files. So my question is: 

How can I get to those PHP files via FTP so I can follow the article?

those sample PHP files are hooks that you would copy, paste and edit into new .php files within the /includes/hooks directory.

however, what exactly are you trying to do? change a link in a navbar child from it's current URL to another URL ? if so, that's usually done with hooks as per the above doc... if it's more of a styling issue, then you could access the navbar template in /templates/dix (or custom)/includes/navbar.tpl and make styling changes in there, or play with the css... it all depends exactly on what you're trying to do. 🙂

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 and understand your posts will initially be pre-moderated