Jump to content
TNG Community

Template 21 Changes


Oakster

Recommended Posts

I can't seem to find where to remove the MEDIA drop down from template 21 and I have looked in the index.php, topmenu.php and templatestyle.css amongst others to no avail, and how do I remove the gray line too?

Screenshot 2025-08-05 125531.png

Link to comment
Share on other sites

I have sorted the grey box, this was in genstyle.css - div.innercontainer with a box-shadow that I have removed.

 

Just the MEDIA menu item now.

EDIT to clarify that if MEDIA cannot be removed in its entirety, am I able to remove the links in the drop down under it, specifically videos, recordings, histories and headstones?

Link to comment
Share on other sites

Maybe it's not specific to template 21: since TNG version 15, I can't figure out how to remove medias from the menu. There used to be an option for this, and even a mod that TNG version 15 has made completely impossible. In the media configuration, the "hide media" option doesn't seem to have any effect either.
 If anyone has a solution, I'm interested.

Link to comment
Share on other sites

@Oakster @Katryne

Ben, Kat

While this does not explain the reason, this worked for me.

Admin, Setup, General Setting, Menu.

Change the Show dropdown menus: to No. 

image.png

Save and stay on the page. 

Change the Show dropdown menus: to Yes. 

image.png

Save and stay on the page. 

If you want to show that menu again choose one of the media items to display.

image.png

 

Link to comment
Share on other sites

Brett, I should update to TNG 15.3, one of its features is :

• Menus: Options have been added on the General Settings page (under Menus) to turn off the standard media types.

 

Link to comment
Share on other sites

17 minutes ago, Katryne said:

I should update to TNG 15.3

Sorry Kat. I thought you had already. I now note @Oakster Ben is still on 15.0

Link to comment
Share on other sites

I'm ashamed, Brett: I wrote to Darrin to ask for this feature when version 15.0 came out, and when he offered it with 15.3, I didn't have the courtesy to thank him or even install it.

Link to comment
Share on other sites

Ha! That's it. I even went on there yesterday when I needed to revert a template and hadn't noticed that I hadn't upgraded. All done now.

Issue resolved. Thanks for both Katryne and Brett for taking the time to read my post.

Link to comment
Share on other sites

carolgenealogy1970
On 8/5/2025 at 8:58 PM, Oakster said:

I can't seem to find where to remove the MEDIA drop down from template 21 and I have looked in the index.php, topmenu.php and templatestyle.css amongst others to no avail, and how do I remove the gray line too?

Screenshot 2025-08-05 125531.png

I ran into the same issue when customizing Template 21—couldn’t figure out where that “Media” menu was hiding either!

Turns out, the Media tab isn’t hard-coded in `index.php` or `topmenu.php`. TNG actually builds it dynamically via the `tng_icons()` function in `genlib.php`. If you want a *quick fix* without touching code, just add this to your `mytngstyle.css` file:

```css
.nav-menu li:nth-child(2) { display: none; }
.nav-menu { border-bottom: none !important; border-top: none !important; }
```

This will hide the Media menu (assuming it's the second item) and also remove that gray line underneath the menu bar. Super clean and update-safe.

Helpful links:
TNG Mod – Menu Manager: https://tng.lythgoes.net/wiki/index.php/Menu_manager
TNG Community: https://tng.community/index.php?/forums/topic/14868-removing-irrelevant-menu-items/

Link to comment
Share on other sites

  • 3 months later...

Hi All,

Just a quick note, if you are seeing the gray box, this means that you've upgraded TNG to v15 BUT your template wasn't upgraded to v15. To get rid of the gray box, you can change the css as mentioned above, or just upgrade the template. This is true for both templates 19 & 21, I'm not sure about any others.

Thanks,
Marsha
https://genealogywebtemplates.com

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...