Jump to content
TNG Community

How to hide div class="menucontainer" on home page only?


sissabobon

Recommended Posts

The mytngstyle CSS applies to your whole site, so it would be easiest to just remove or comment out the div tags on that page.

 

GOGGS

Link to comment
Share on other sites

Thanks, GOGGS, I'm not sure how to do that. I want to use template 15 and not display the beige navigation on the homepage, but only on the other pages when logged in. Template 16, for example, does that work. Do you know what I need to delete and where?

Link to comment
Share on other sites

The menu container is loaded with the TNG header so it shows on all pages. To hide or modify the menu container on the home page do the following:

Open the index.php file for template 15. Go the end of the file and insert the style coding as shown below.

Note the comments that explain what each line does:

<?php
tng_footer($flags);
?>
<style>
.menucontainer .innercontainer, ul.tngdd .menulink {
	display:none; /* Hides the menu completely */
	background-color: #ffffff; /* If the menu is shown, changes the background color */
	border: none; /* If the menu is shown, hides the border */
	box-shadow: none; /* If the menu is shown, hides shadow */
}
</style>
</body>
</html>

Comment out or delete styling lines you do not want to apply.

Edited by Steve1200
Edit to add more styling options
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...