Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Custom header navbar links or elements

Asked Modified Viewed 3,153 times
D
Driv3r
D
Driv3r 10
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
asked
Junior Member

Hi!

First of all, congratulations on the PHPFusion 9.0 Stable milestone! :Y

So I just started to create a new Bootstrap based theme for my site, instead of porting the current one, and I have a question:

Is it possible to add custom elements into the header navigation?
So for example the navigation can be displayed with the showsublinks function, which is fine, but I'd like to add more links via ul and li elements, maybe some dropdowns, the way they are described in the Bootstrap documentation.

Another solution that would be also good for me, if I could just recreate the whole structure of the menu, but of course keeping the header navigation links.

Thanks!
0 replies

5 posts

F
Falk
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

Thank you, anything is possible. I think you need to make your own render engine for such custom link injection.
You do have custom ID parts in the Administration for Theme elements. Perhaps that could work too.
0 replies
D
Driv3r
D
Driv3r 10
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

Thanks!

In the end I just wrote a custom code that doesn't use the Sublinks function. Actually the new Sublinks function is pretty cool, because it does have a html code injection part. My only suggestion would be to also have a parameter for custom brand, than it would be perfect. I personally use SVG image and custom font for that, rather than an image.

But probably as you mentioned, there are alternative ways to do this.
0 replies
F
Falk
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

Is it the top menu @ http://oprend.hu ?
0 replies
D
Driv3r
D
Driv3r 10
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

No, that is the current (old one). The new one is in the attachments. I want it to be a lot more simple, and compat, so this was the easiest way for me. What I'm doing is basically writing a new theme starting from scratch (from the bootstrap template) again.

By the way, is there still any possibility to modify the look of the comments? In older version I now there was the render_comments function, but I guess, thanks to the new comment system (which is very nice) it isn't the same any more. I could not find it yet.
Driv3r attached the following file:
top-bar.png [No information available / 150 Downloads]
0 replies
F
Falk
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

Yes you should be able to redefine it in your theme as function or template, just copy the function. More examples will soon be provided once we launch the new Main site.

See includes/theme_functions_include.php
Around Line 1183 if (!function_exists("display_comments"wink)
0 replies

Category Forum

Themes Support

Labels

None yet

Statistics

  • Views 0 views
  • Posts 5 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

F
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
D
D
Driv3r 10
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet