Oakster Posted August 5, 2025 Report Share Posted August 5, 2025 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? Quote Link to comment Share on other sites More sharing options...
Oakster Posted August 5, 2025 Author Report Share Posted August 5, 2025 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? Quote Link to comment Share on other sites More sharing options...
Katryne Posted August 6, 2025 Report Share Posted August 6, 2025 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. Quote Link to comment Share on other sites More sharing options...
Brett Posted August 6, 2025 Report Share Posted August 6, 2025 @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. Save and stay on the page. Change the Show dropdown menus: to Yes. Save and stay on the page. If you want to show that menu again choose one of the media items to display. Quote Link to comment Share on other sites More sharing options...
Katryne Posted August 6, 2025 Report Share Posted August 6, 2025 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. Quote Link to comment Share on other sites More sharing options...
Brett Posted August 6, 2025 Report Share Posted August 6, 2025 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 Quote Link to comment Share on other sites More sharing options...
Katryne Posted August 6, 2025 Report Share Posted August 6, 2025 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. Quote Link to comment Share on other sites More sharing options...
Oakster Posted August 6, 2025 Author Report Share Posted August 6, 2025 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. Quote Link to comment Share on other sites More sharing options...
carolgenealogy1970 Posted August 7, 2025 Report Share Posted August 7, 2025 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? 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/ Quote Link to comment Share on other sites More sharing options...
Oakster Posted August 7, 2025 Author Report Share Posted August 7, 2025 Thank you Quote Link to comment Share on other sites More sharing options...
Marsha Posted November 30, 2025 Report Share Posted November 30, 2025 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.