- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
Currently when logged out of the instance, the user has a "Log in" Menu item displayed at the top right. I want this removed so they only use the available options on the landing page. Where is this being controlled? There is no specific menu item listed as "Log in."
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
Hi Daniel,
The reason you cannot find a "Log in" menu item in the list is that this specific link is usually hardcoded inside the Header Widget's HTML template, rather than being a configurable record in the menu table.
To remove it, you have two options.
Option 1: The "Best Practice" Way (Clone the Widget) This is the cleanest method as it physically removes the code.
Navigate to Service Portal > Portals and open your specific portal record.
Click the "i" (info) icon next to the Theme field to open your Theme.
Open the record in the Header field (e.g., "Stock Header").
Clone this widget (give it a new name, e.g., "Header without Login").
In the HTML Template of the new widget, look for a block of code similar to this:
<ul ng-if="!user.logged_in" class="nav navbar-nav"> <li><a href="?id=login">${Login}</a></li> </ul>
Delete or comment out these lines.
Go back to your Theme record and update the Header field to use your new custom widget.
Option 2: The "Quick CSS" Way If you prefer not to create a custom widget, you can try to hide it visually using CSS.
Open your Portal's Theme.
In the CSS Variables field (or an associated CSS Include), add:
/* Hides the login link in the header */ .navbar-nav > li > a[href*="id=login"] { display: none !important; }
Hope this helps you clean up the landing page!
If this response helps you solve the issue, please mark it as Accepted Solution.
This helps the community grow and assists others in finding valid answers faster.
Best regards, Brandão.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
Hi Daniel,
The reason you cannot find a "Log in" menu item in the list is that this specific link is usually hardcoded inside the Header Widget's HTML template, rather than being a configurable record in the menu table.
To remove it, you have two options.
Option 1: The "Best Practice" Way (Clone the Widget) This is the cleanest method as it physically removes the code.
Navigate to Service Portal > Portals and open your specific portal record.
Click the "i" (info) icon next to the Theme field to open your Theme.
Open the record in the Header field (e.g., "Stock Header").
Clone this widget (give it a new name, e.g., "Header without Login").
In the HTML Template of the new widget, look for a block of code similar to this:
<ul ng-if="!user.logged_in" class="nav navbar-nav"> <li><a href="?id=login">${Login}</a></li> </ul>
Delete or comment out these lines.
Go back to your Theme record and update the Header field to use your new custom widget.
Option 2: The "Quick CSS" Way If you prefer not to create a custom widget, you can try to hide it visually using CSS.
Open your Portal's Theme.
In the CSS Variables field (or an associated CSS Include), add:
/* Hides the login link in the header */ .navbar-nav > li > a[href*="id=login"] { display: none !important; }
Hope this helps you clean up the landing page!
If this response helps you solve the issue, please mark it as Accepted Solution.
This helps the community grow and assists others in finding valid answers faster.
Best regards, Brandão.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
Thanks for your help on this! The CSS option worked great.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
You are welcome, Daniel! Glad to help.
Feel free to connect with me on LinkedIn: https://www.linkedin.com/in/itallobrandao/
Best regards, Brandão.
