How to add more menu items next to "Quick links" and "FAQ"...

For support and discussion related to templates and themes in phpBB 3.3.
Andrew Mackinnon
Registered User
Posts: 17
Joined: Sun Oct 24, 2021 2:58 pm
Location: Sydney, Australia

How to add more menu items next to "Quick links" and "FAQ"...

Post by Andrew Mackinnon »

I'm building a website using phpBB 3.3.5.

(phpBB is excellent software. Thanks a lot for providing it for use. Also, this support forum is amazing.)

Currently, "Quick links" and "FAQ" appear near the top of many (if not all) web pages in phpBB 3.3.5.

I would like to add more menu items next to "Quick links" and "FAQ" on every web page on which "Quick links" and "FAQ" currently appear in phpBB 3.3.5. Assuming that these menu items are named "A", "B" and "C", I would like to be able to change the order of all the menu items from left to right, so that the order from left to right is something like "A", "B", "C", "Quick links" and "FAQ".

Currently, clicking on "Quick links" results in a drop-down appearing, so that this drop-down displays several items to choose from.

One of the menu items I would like to add is named "About". I would like a drop-down to appear when the user clicks on this menu item named "About", so that this drop-down displays several items to choose from.

I would like each of these items to link to a static web page which is in the normal phpBB format with the normal phpBB header and phpBB footer, except that instead of one or more forums appearing in the middle of the web page, I would like to be able to enter basic text and basic HTML, such as URLs, in the middle of the web page for the users to read when they visit the web page.

If somebody could please point me in the right direction in order to accomplish this, I sure would appreciate it. I have a strong enough background in programming, database development and website design using HTML to have a good chance of being able to follow your instructions and add these menu items and web pages.

Thanks a lot for any assistance you can provide.
User avatar
Mannix_
Registered User
Posts: 2038
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt

Re: How to add more menu items next to "Quick links" and "FAQ"...

Post by Mannix_ »

You are gonna need to edit the navbar_header.html file to add it

Here is a template. Good Luck !

Code: Select all

		<li class="dropdown-container responsive-menu data-skip-responsive="true">
			<a href="#" class="dropdown-trigger">
				<i class="icon fa-bars fa-fw" aria-hidden="true"></i><span>About</span>
			</a>
			<div class="dropdown">
				<div class="pointer"><div class="pointer-inner"></div></div>
				<ul class="dropdown-contents" role="menu">
					<li>
						<a href="yourlink" role="menuitem">
							<i class="icon fa-shield fa-fw" aria-hidden="true"></i><span>Your Link Name 1</span>
						</a>
					</li>	
					<li>
						<a href="yourlink" role="menuitem">
							<i class="icon fa-shield fa-fw" aria-hidden="true"></i><span>Your Link Name 2</span>
						</a>
					</li>		
					<li>
						<a href="yourlink" role="menuitem">
							<i class="icon fa-shield fa-fw" aria-hidden="true"></i><span>Your Link Name 3</span>
						</a>
					</li>											
				</ul>
			</div>
		</li>
Notice you are gonna need to adjust the FontAwesome icons in the template I repeated a shield 3 times. If you don't want the icons just remove the i tags ;)

After making changes don't forget to purge the cache in ACP.
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
User avatar
pit-PL
Registered User
Posts: 3212
Joined: Sat Nov 21, 2009 12:24 pm

Re: How to add more menu items next to "Quick links" and "FAQ"...

Post by pit-PL »

Andrew Mackinnon
Registered User
Posts: 17
Joined: Sun Oct 24, 2021 2:58 pm
Location: Sydney, Australia

Re: How to add more menu items next to "Quick links" and "FAQ"...

Post by Andrew Mackinnon »

Thanks a lot for letting me know, Mannix_. I really appreciate it.

Could you please tell me what the path for the navbar_header.html file is?
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2527
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: How to add more menu items next to "Quick links" and "FAQ"...

Post by P_I »

Mannix_ wrote: Mon Nov 08, 2021 1:03 pm You are gonna need to edit the navbar_header.html file to add it

Here is a template. Good Luck !
<snip>

After making changes don't forget to purge the cache in ACP.
Also remember to fully document the changes you make as you will likely need to reapply them each and every time you update your phpBB software. That's the disadvantage to editing the phpBB core files.

Added: You could also look at the LMDI Multilinks extension. Then you wouldn't have to modify phpBB core files.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
Mannix_
Registered User
Posts: 2038
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt

Re: How to add more menu items next to "Quick links" and "FAQ"...

Post by Mannix_ »

Andrew Mackinnon wrote: Mon Nov 08, 2021 1:18 pm Thanks a lot for letting me know, Mannix_. I really appreciate it.

Could you please tell me what the path for the navbar_header.html file is?

Code: Select all

root/styles/prosilver/template/
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
Andrew Mackinnon
Registered User
Posts: 17
Joined: Sun Oct 24, 2021 2:58 pm
Location: Sydney, Australia

Re: How to add more menu items next to "Quick links" and "FAQ"...

Post by Andrew Mackinnon »

Thanks also, Mannix_, for the template which you provided to me, which is very helpful.

I can't build my website the way I want without making this modification and I wouldn't have been able to do it without your expert assistance.
Andrew Mackinnon
Registered User
Posts: 17
Joined: Sun Oct 24, 2021 2:58 pm
Location: Sydney, Australia

Re: How to add more menu items next to "Quick links" and "FAQ"...

Post by Andrew Mackinnon »

Thanks so much, pit-PL, for pointing me in the direction of this very helpful extension.

I'm embarrassed to say that when I first visited this URL that you provided, I thought it was just a generic web page instead of the answer to my problem.

I'm sorry for being so careless.

I'll take a very close look at it because I can't build my website the way I want to without making these modifications to phpBB.

Thanks a lot for being such a help to me. I really appreciate it.

Return to “[3.3.x] Styles Support & Discussion”